Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code coverage and coverall integration #3

Merged
merged 3 commits into from
Oct 27, 2017
Merged

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