Generates coverage information of your CSS files and creates reports using the optional source maps.
You can use the command line version to:
css-coverageas part of a build (like in GruntJS)
You can also generate LCOV Files for Coveralls or just HTML reports:
# Run CSS Coverage and generate a LCOV report (with verbose output) css-coverage --css ./test/test.css --html ./test/test.html --lcov ./css.lcov # Optionally Generate an HTML report genhtml ./css.lcov --output-directory ./coverage
Usage: css-coverage [options]Generate coverage info for a CSS file against an HTML file.This supports loading sourcemaps by using the sourceMappingURL=FILENAME.map CSS commentOptions:-h, --help output usage information--html [path/to/file.html] path to a local HTML file--css [path/to/file.css] path to a local CSS file--lcov [path/to/output.lcov] the LCOV output file--verbose verbose/debugging output--ignore-source-map disable loading the sourcemap if one is found--cover-declarations try to cover CSS declarations as well as selectors(best-effort, difficult with sourcemaps)