Skip to content

Commit ce908fe

Browse files
committed
Use nyc to show code coverage at coverage/lcov-report/index.html
1 parent 87f5094 commit ce908fe

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
lib
22
xregexp-all.js
3+
.nyc_output
4+
coverage
35

46
# Compiled Python files
57
*.pyc

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"prebuild": "npm run build-unicode-data && npm run lint && npm run babel",
3434
"build": "browserify lib/index.js --standalone XRegExp > xregexp-all.js",
3535
"pretest": "npm run build",
36-
"test": "jasmine JASMINE_CONFIG_PATH=tests/jasmine.json",
36+
"test": "nyc --reporter=lcov --reporter=text-summary jasmine JASMINE_CONFIG_PATH=tests/jasmine.json",
3737
"test-saucelabs": "npm run pretest && zuul tests/spec/*.js",
3838
"test-browser": "npm run test-saucelabs -- --local --open",
3939
"prepublish": "npm test"

0 commit comments

Comments
 (0)