Skip to content

zmitry/test-code-cov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travis Coveralls Example

Example repo for including Coveralls in Travis CI build process. (Using jest to run tests)

Prerequisites

  • Make sure repo is added to Travis CI
  • Make sure repo is added to Coveralls.io

Install Coveralls package

npm install coveralls --save-dev

Add Coveralls command to package.json

  "scripts": {
    ...
    "coveralls": "jest --coverage && cat ./tests/coverage/lcov.info | coveralls",
  },

Add Coveralls command to .travis.yml

script:
  - npm run coveralls

Configurations

The above steps automatically integrates Coveralls in the Travis CI build. Further configurations are possible under the "PULL REQUESTS ALERTS" section in the repo settings at coveralls.io.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors