Open arschmitz opened 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.
Any status on this?
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 ?
True: http://ericsuzanne.com/true/ Provides unit testing of sass inspired by QUnit
Bootcamp http://thejameskyle.com/bootcamp/ offers grunt plugin inspired by jasmin