CoffeeScript + mocha + node.js + coverage under windows example
详细说明请见我的中文博客。
Ensure all package dependencies are installed. Now only chai is the dependency.
You can also just run npm install after cloned this repository to automatically install all dependencies.
Ensure you have JSCoverage for windows installed and added the directory of executable files into PATH envirenmonts parameters.
node-jscoverage is not needed.
From command line:
mocha --compilers coffee:coffee-script
Through make command:
make test-all
From command line:
coffee -o lib-js -c lib
jscoverage --no-highlight lib-js lib-cov
mocha --compilers coffee:coffee-script -R html-cov > coverage.html
Through make command:
make coverage
From command line: (just run all commands above)
Through make command:
make