You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generates coverage information of your CSS (or LESS) files using the command line or in browser/GruntJS unit tests.
4
-
5
-
By hooking into [BlanketJS](http://blanketjs.org) you can use this with Jasmine, Mocha, QUnit, Coveralls, and tools like [grunt-blanket-mocha](https://github.com/ModelN/grunt-blanket-mocha).
3
+
Generates coverage information of your CSS files and creates reports using the optional source maps.
6
4
7
5
## How is this different from other CSS coverage tools?
8
6
9
-
Code coverage tools use Unit Tests to "exercise" the code and show you what is not tested; this project hooks into those same tools and gives you CSS coverage information for free!
10
-
11
-
It also:
12
-
13
-
- gives coverage information on your source _LESS_ files, not just the compiled CSS file
14
-
- also instruments files loaded via the RequireJS `less!` plugin (if used)
15
-
- provides a command line script to run against individual test files or pages hosted on a website
16
-
17
-
**TODO:** Coverage currently runs after every test but there will be a function you can call in the middle of a test
18
-
19
-
## Can I see it?
20
-
21
-
Check out the in-browser [mocha demo](http://philschatz.github.io/css-coverage.js/test/mocha-demo)! (see _"blanket.js results"_ for the CSS coverage)
0 commit comments