Skip to content

Commit

Permalink
Add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Sep 26, 2017
1 parent 2b44d05 commit 786af11
Show file tree
Hide file tree
Showing 4 changed files with 633 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ node_js:
script:
- npm run lint
- npm run test
after_success:
- npm run coverage
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Command line tool for generating a changelog from git tags and commit history
[![Build Status](https://img.shields.io/travis/CookPete/auto-changelog.svg)](https://travis-ci.org/CookPete/auto-changelog)
[![Dependency Status](https://img.shields.io/david/CookPete/auto-changelog.svg)](https://david-dm.org/CookPete/auto-changelog)
[![devDependency Status](https://img.shields.io/david/dev/CookPete/auto-changelog.svg)](https://david-dm.org/CookPete/auto-changelog#info=devDependencies)
[![Test Coverage](https://img.shields.io/codecov/c/github/cookpete/auto-changelog.svg)](https://codecov.io/gh/CookPete/auto-changelog)


### Installation
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
},
"scripts": {
"lint": "standard --verbose | snazzy",
"test": "mocha test --compilers js:babel-core/register",
"test": "nyc mocha test --compilers js:babel-core/register",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"clean": "rm -rf lib",
"build": "babel src -d lib",
"preversion": "npm run lint && npm run test",
Expand Down Expand Up @@ -50,7 +51,9 @@
"babel-preset-env": "^1.6.0",
"babel-preset-stage-0": "^6.3.13",
"chai": "^4.1.2",
"codecov": "^2.3.0",
"mocha": "^3.0.2",
"nyc": "^11.2.1",
"snazzy": "^7.0.0",
"standard": "^10.0.3"
},
Expand Down
Loading

0 comments on commit 786af11

Please sign in to comment.