Skip to content

Commit

Permalink
feat(coverage): added coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Apr 11, 2016
1 parent abba4b0 commit e5353c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ docs/redsmin-proxy-announcment.pxm
test/docs.html
test/file.xml
private/
test/coverage
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
},
"scripts": {
"start": "node ./bin/redsmin",
"test": "multi='spec=- xunit=test/file.xml doc=test/docs.html' mocha -t 5000 -R mocha-multi lib/**.test.js",
"test": "multi='spec=- xunit=test/file.xml doc=test/docs.html' nyc --all --statements=77 --lines=77 --functions=70 --branches=57 --check-coverage --reporter=lcov --reporter=cobertura --report-dir=test/coverage -- mocha -t 5000 -R mocha-multi lib/**.test.js",
"test-watch": "multi='spec=- xunit=test/file.xml doc=test/docs.html' mocha -w -t 10000 -g 'should handle async connect disconnect' -R mocha-multi lib/**.test.js",
"changelog": "github-changes --use-commit-body --order-semver --o $(node -p 'process.env.npm_package_repository_url.split(\"/\")[3];') --r $(node -p 'a=process.env.npm_package_repository_url.split(\"/\");a[a.length-1].split(\".\")[0]') --token $CHANGELOG_GITHUB_TOKEN_FG -f CHANGELOG.md",
"changelog-git": "npm run changelog && git add CHANGELOG.md && git commit -m 'docs(changelog): updated' && git push origin master",
"check-build": "check-build"
Expand Down Expand Up @@ -51,6 +52,7 @@
"mocha": "^2.2.1",
"mocha-multi": "^0.6.0",
"nodeunit": "~0.7.4",
"nyc": "^6.4.0",
"sinon": "^1.14.1"
},
"engines": {
Expand Down

0 comments on commit e5353c9

Please sign in to comment.