Skip to content

Commit

Permalink
added nyc/istanbul for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlannigan committed Nov 21, 2016
1 parent f72ac45 commit 4d829c7
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .babelrc
@@ -1,3 +1,8 @@
{
"presets": ["goodway"]
"presets": ["goodway"],
"env": {
"test": {
"plugins": ["istanbul"]
}
}
}
13 changes: 13 additions & 0 deletions .travis.yml
@@ -0,0 +1,13 @@
sudo: false
language: node_js
node_js:
- 4
- 5
- 6
- "stable"

before_install:
- "npm config set progress=false"

after_script:
- "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
29 changes: 27 additions & 2 deletions package.json
Expand Up @@ -7,7 +7,7 @@
},
"main": "./dist/index.js",
"scripts": {
"test": "./node_modules/.bin/jasmine",
"test": "cross-env BABEL_ENV=test nyc jasmine",
"prepublish": "npm run build",
"build": "npm run build:clean; npm run build:compile",
"build:compile": "./node_modules/.bin/babel src -s inline -d dist",
Expand All @@ -32,11 +32,36 @@
"devDependencies": {
"babel-cli": "^6.18.0",
"babel-eslint": "^7.1.0",
"babel-plugin-istanbul": "^3.0.0",
"babel-preset-goodway": "git+ssh://git@github.com/GoodwayGroup/babel-preset-goodway.git",
"babel-register": "^6.18.0",
"coveralls": "^2.11.15",
"cross-env": "^3.1.3",
"eslint-config-goodway": "git+ssh://git@github.com/GoodwayGroup/eslint-config-goodway.git",
"jasmine": "^2.5.2",
"jasmine-core": "^2.5.2",
"nock": "^9.0.2"
"nock": "^9.0.2",
"nyc": "^9.0.1"
},
"nyc": {
"include": [
"src/*.js",
"index.js"
],
"require": [
"babel-register"
],
"reporter": [
"lcov",
"text"
],
"lines": 90,
"statements": 90,
"functions": 90,
"branches": 90,
"sourceMap": false,
"instrument": false,
"cache": true,
"check-coverage": true
}
}

0 comments on commit 4d829c7

Please sign in to comment.