@nodecov/cli

The coverage report transporter tool for nodecov


Keywords
coverage, code-coverage, nodecov.io, nodecov
License
MIT
Install
npm install @nodecov/cli@1.0.2

Documentation

Welcome to @nodecov/cli 👋

Version Documentation Maintenance License: MIT Twitter: md5hashbrown

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.