@nodecov/cli v1.0.2
The coverage report transporter tool for nodecov
š Homepage
Prerequisites
- node >=4.0
Install
npm install nodecov --save-devor
yarn add nodecov --devUsage:
This script ( bin/nodecov ) detect your CI provider and all coverage reports and uploads them to nodecov.
Once your app is instrumented for coverage, and building, simply call ./node_modules/.bin/nodecov.
This library currently supports the following CI companies: Travis CI, Travis, Appveyor, CircleCI, Cirrus CI, Codeship, Drone, Jenkins, Shippable, Semaphore, Wercker, Snap CI, Buildkite.
Upload repo tokens
Repo tokens are not required for public repos tested on Travis-Org, CircleCI or AppVeyor.
Repo tokens are necessary to distinguish your repository from others. You can find your repo token on your repository page at nodecov. Set this unique uuid to nodecov_TOKEN in your environment variables.
export nodecov_TOKEN=":uuid-repo-token"
# or
./node_modules/.bin/nodecov --token=:token
# or
./node_modules/.bin/nyc report --reporter=text-lcov | ./node_modules/.bin/nodecov --pipeIstanbul
With Mocha:
istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec
./node_modules/.bin/nodecovWith Jasmine:
istanbul cover jasmine-node --captureExceptions spec/
./node_modules/.bin/nodecovWith Tape:
istanbul cover test.js
./node_modules/.bin/nodecovWith NYC
nyc npm test
nyc report --reporter=text-lcov > coverage.lcov
./node_modules/.bin/nodecovRun tests
yarn testAuthor
š¤ Nusrath Khan nusrath501khan@gmail.com
- Twitter: @md5hashbrown
- Github: @nunsie
š¤ Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
Show your support
Give a āļø if this project helped you!
š License
Copyright Ā© 2019 Nusrath Khan <nusrath501khan@gmail.com>. This project is MIT licensed.