package: use nyc for coverage

This commit is contained in:
Daniel Cousens 2016-09-14 22:25:12 +10:00
parent bcb4fb315e
commit dc86a74f0b
2 changed files with 5 additions and 19 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
coverage coverage
node_modules node_modules
.nyc_output

View file

@ -32,8 +32,8 @@
} }
], ],
"scripts": { "scripts": {
"coverage": "mocha --require blanket -R travis-cov", "coverage-report": "nyc report --reporter=lcov",
"coverage-local": "mocha --require blanket -R html-cov", "coverage": "nyc --check-coverage --branches 90 --functions 90 mocha",
"integration": "mocha test/integration/", "integration": "mocha test/integration/",
"prepublish": "npm run test", "prepublish": "npm run test",
"standard": "standard", "standard": "standard",
@ -47,20 +47,6 @@
"files": [ "files": [
"src" "src"
], ],
"config": {
"blanket": {
"pattern": [
""
],
"data-cover-never": [
"node_modules",
"test"
]
},
"travis-cov": {
"threshold": 99
}
},
"dependencies": { "dependencies": {
"bigi": "^1.4.0", "bigi": "^1.4.0",
"bip66": "^1.1.0", "bip66": "^1.1.0",
@ -77,17 +63,16 @@
}, },
"devDependencies": { "devDependencies": {
"async": "^1.5.0", "async": "^1.5.0",
"blanket": "^1.1.0",
"browserify": "^10.0.0", "browserify": "^10.0.0",
"bs58": "^2.0.1", "bs58": "^2.0.1",
"cb-http-client": "^0.2.0", "cb-http-client": "^0.2.0",
"httpify": "^1.0.0", "httpify": "^1.0.0",
"minimaldata": "^1.0.0", "minimaldata": "^1.0.0",
"mocha": "^2.2.0", "mocha": "^2.2.0",
"nyc": "^8.1.0",
"proxyquire": "^1.4.0", "proxyquire": "^1.4.0",
"sinon": "^1.12.2", "sinon": "^1.12.2",
"standard": "^8.0.0", "standard": "^8.0.0"
"travis-cov": "^0.2.0"
}, },
"license": "MIT" "license": "MIT"
} }