Skip to content

Conversation

brunolm
Copy link
Owner

@brunolm brunolm commented Oct 27, 2017

Coverage

You can run code coverage and check the result locally:

npm run coverage

And then open index.html in the generated folder coverage

Integration with coveralls:

  • Install coveralls npm i -D coveralls (https://github.com/nickmerwin/node-coveralls)
    • Add coveralls script coveralls < ./coverage/lcov.info
  • Setup .travis.yml to run coverage + converalls after successfully build
  • Create coveralls account, link repo
    • After the build click the badge and copy the markdown code

Optional stuff

It is possible to run coveralls script locally, but you need to declare two variables: (https://github.com/nickmerwin/node-coveralls)

  • COVERALLS_SERVICE_NAME = "Travis"
  • COVERALLS_REPO_TOKEN = "coveralls_token"
  • npm run converalls

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling be8c2ea on code-coverage into ** on master**.

@brunolm brunolm merged commit 973f089 into master Oct 27, 2017
@brunolm brunolm deleted the code-coverage branch October 27, 2017 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants