The jscoverage standard approach is a tool for the entire code base that you want coverage for, then run the test suite and create a report. This approach is a bit difficult, since the code base only needs a coverage report at a given frequency. Unlike CI tests, how often does a developer really need to know the percentage change in coverage weekly?
The node.js jscoverage project uses the same βtoolkitβ approach as for the larger jscoverage project, but it can be run from the CLI node in a separate file or from the code of one or more files, since they are called from the tests themselves. Instead of a separate step to the "tool" package of files, jscoverage (confusing name), "tools" during testing.
I am working on a template that allows you to test and test jasmine in a browser or on the CLI using the same source code setting and test configuration. Another beta. Jasmine just in time for the "toolbox" is not yet complete.
https://github.com/d1b1/jasmine-jscoverage
source share