1.0.2 ā€¢ Published 5 years ago

@nodecov/cli v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

The coverage report transporter tool for nodecov

šŸ  Homepage

Prerequisites

  • node >=4.0

Install

npm install nodecov --save-dev

or

yarn add nodecov --dev

Usage:

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 --pipe

Istanbul

With Mocha:

istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec
./node_modules/.bin/nodecov

With Jasmine:

istanbul cover jasmine-node --captureExceptions spec/
./node_modules/.bin/nodecov

With Tape:

istanbul cover test.js
./node_modules/.bin/nodecov

With NYC

nyc npm test
nyc report --reporter=text-lcov > coverage.lcov
./node_modules/.bin/nodecov

Run tests

yarn test

Author

šŸ‘¤ Nusrath Khan nusrath501khan@gmail.com

šŸ¤ 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.