Skip to content

Commit

Permalink
Integrating with coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmarban committed Apr 28, 2019
1 parent 06d4937 commit 1291323
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ before_install:

script:
- npm test

after_success:
- npm run coverage
34 changes: 34 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"license": "MIT",
"devDependencies": {
"chai": "^4.2.0",
"coveralls": "^3.0.3",
"eslint": "^5.16.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.17.2",
Expand All @@ -51,8 +52,8 @@
"scripts": {
"lint": "eslint lib test examples --color",
"format": "prettier-standard 'lib/**/*.js' 'test/**/*.js' 'examples/**/*.js'",
"test": "nyc --reporter=text --reporter lcov npm run test:mocha",
"test:mocha": "mocha --exit",
"test:coverage": "nyc --reporter=text --reporter=html npm run test:mocha"
"test": "nyc mocha",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"test:coverage": "nyc --reporter=text --reporter=html mocha"
}
}

0 comments on commit 1291323

Please sign in to comment.