npm install jscov
|26||downloads in the last week|
|134||downloads in the last month|
|Version||0.6.14 last updated 3 months ago|
|Dependencies (7)||async, coffee-script, wrench, optimist, underscore, esprima, escodegen|
npm install -g jscov
jscov --help on the command line and the rest should be obvious.
You can also use it programmatically. It has two functions and can be used like this:
Pull request are welcome obviously!
Running the tests requires jscoverage to be installed. This is because the main part of the tests compares the output of jscov to jscoverage. Get it here http://siliconforks.com/jscoverage or do what
.travis.yml does to get it up and running.
- Test using empty blocks in some different contexts. Are they removed?
- Write a test for testing the actual code-coverage with and without using the expander
- Attempt to instrument code that has already been instrumented (seems like jscoverage prevents that)
- Branches current attempting to solve:
- Float precision
- Octal-looking decimals
- JS v1.6
- Implement the following features from JSCoverage:
- codeExpander should be tested to confirm that the program before and after does the exact same thing (could the AST's be reduced or should test programs be run?)
- Look into the parse parameters "source" and "tokens"; might be helpful for simplying keeping source code and solivng the octal bug
- Make jscoverage and jscov run with the same default parameters (for example encoding and js-version)