- Notifications
You must be signed in to change notification settings - Fork3
openstax/css-coverage.js
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Generates coverage information of your CSS files and creates reports using the optional source maps.
- gives coverage information on your source files (SASS/LESS/Stylus/etc), not just the compiled CSS file
- provides a command line script to run against individual test files
You can use the command line version to:
- test a CSS and HTML file one at a time
- use
css-coverageas part of a build (like in GruntJS) - generate a LCOV Report for use in services likeCoveralls or HTML reports using
lcov
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 reportgenhtml ./css.lcov --output-directory ./coverageUsage: 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: --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 --ignore-declarations [move-to,content] A comma-separated list of declarations to ignore -h, --help output usage information
About
🎨 Code Coverage for your CSS!
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.