jquery-archive / css-chassis

An attempt at creating an open standard for both CSS and JavaScript UI libraries.
https://css-chassis.com
Other
351 stars 67 forks source link

Investigate SASS unit testing #35

Open arschmitz opened 9 years ago

arschmitz commented 9 years ago

True: http://ericsuzanne.com/true/ Provides unit testing of sass inspired by QUnit

Bootcamp http://thejameskyle.com/bootcamp/ offers grunt plugin inspired by jasmin

arschmitz commented 9 years ago

From @jzaefferer on #25

I just looked at the two references. Apparently you write "tests" sass in both cases, so that you can test mathematical functions implemented in sass, where the test provides input variables and compares the output to other variables. Based on that these are only useful if this framework ends up with lots of non-trivial calculations that can be abstracted and tested separately. Otherwise, I guess, the declarative nature of CSS leaves little room for unit testing.

Maybe a better idea is to look what kind of testing other CSS frameworks are doing. We started with a list of frameworks, but I can't find that anymore.

sfrisk commented 9 years ago

Any status on this?

thejdeep commented 8 years ago

Had a brief look into tests performed by other sass frameworks. Bootstrap, Compass and Bourbon do not perform any kind of sass tests afaik. But looking beyond, maybe we should write unit tests on the core logical functions in order to prevent regressions later as the complexity of the codebase grows. Opinions ?