Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Investigate SASS unit testing #35

Open
arschmitz opened this issue Feb 3, 2015 · 3 comments
Open

Investigate SASS unit testing #35

arschmitz opened this issue Feb 3, 2015 · 3 comments
Labels

Comments

@arschmitz
Copy link
Contributor

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
Copy link
Contributor Author

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 sfrisk added the Testing label Mar 4, 2015
@sfrisk
Copy link
Contributor

sfrisk commented Jul 21, 2015

Any status on this?

@thejdeep
Copy link
Contributor

thejdeep commented Mar 4, 2016

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 ?

thejdeep added a commit to thejdeep/css-chassis that referenced this issue Mar 4, 2016
thejdeep added a commit to thejdeep/css-chassis that referenced this issue Mar 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants