test coverage CircleCI

This commit is contained in:
Cyrille 2019-05-09 09:21:05 +01:00
parent 8a80a6631a
commit 543983597d
4 changed files with 1398 additions and 5 deletions

View File

@ -6,12 +6,11 @@ jobs:
steps:
- checkout
- run: npm install
- run: npm install -g istanbul
- run: npm run clean
- run: npm run coverage
- run: npm run clean
- store_artifacts:
path: coverage
path: .nyc_output
workflows:
version: 2

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
.env
node_modules/
coverage/
.nyc_output/

1393
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@
"scripts": {
"test": "node ./test.js",
"clean": "node ./clean.js",
"coverage": "istanbul cover ./test.js"
"coverage": "nyc npm run test | codacy-coverage"
},
"repository": {
"type": "git",
@ -34,6 +34,7 @@
},
"devDependencies": {
"dotenv": "^8.0.0",
"greenlock-store-test": "^3.0.2"
"greenlock-store-test": "^3.0.2",
"nyc": "^14.1.0"
}
}