什么是istanbul-coveralls，A simple alias for istanbul + coveralls
istanbul cover test.js && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage
istanbul cover test.js && istanbul-coveralls
npm install --save-dev istanbul istanbul-coveralls
- Write a coverage information file under
istanbul covercommand or the API of istanbul.
istanbul-coverallscommand. See the docs of node-coveralls for more information about its usage.
By default, it removes
./coverage after coverage reporting. If
--no-rm flag is enabled, it doesn’t remove the directory.
istanbul cover test.js && istanbul-coveralls --no-rm
istanbul cover ./node_modules/.bin/_mocha && ./node_modules/.bin/istanbul-coveralls
istanbul cover _mocha && istanbul-coveralls
Copyright © 2014 - 2016 Shinnosuke Watanabe
Licensed under the MIT LIcense.