Skip to content
Myr

build: use nyc for test coverage

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 884657d · Browse files · 4 files+25 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+25 added−12 removed

  • other:+25 added−12 removed

4 files+25 added−12 removed

modified:.github/workflows/ci.yml+9 added-9 removed
modified:.gitignore+1 added
3 unmodified lines
4*.log5*.gz67# Coveralls8.nyc_output9coverage1011# Benchmarking12benchmarks/graphs
3 unmodified lines
modified:appveyor.yml+12 added
58 unmodified lines
59 } elseif ([int]$env:nodejs_version.split(".")[0] -lt 12) {60 npm install --silent --save-dev mocha@8.4.061 }62 - ps: |63 # nyc for test coverage64 # - use 10.3.2 for Node.js < 465 # - use 11.9.0 for Node.js < 666 # - use 14.1.1 for Node.js < 867 if ([int]$env:nodejs_version.split(".")[0] -lt 4) {68 npm install --silent --save-dev nyc@10.3.269 } elseif ([int]$env:nodejs_version.split(".")[0] -lt 6) {70 npm install --silent --save-dev nyc@11.9.071 } elseif ([int]$env:nodejs_version.split(".")[0] -lt 8) {72 npm install --silent --save-dev nyc@14.1.173 }74 - ps: |75 # supertest for http calls76 # - use 2.0.0 for Node.js < 477 # - use 3.4.2 for Node.js < 678 # - use 6.1.6 for Node.js < 8
25 unmodified lines
modified:package.json+3 added-3 removed
66 unmodified lines
67 "ejs": "3.1.6",68 "eslint": "7.32.0",69 "express-session": "1.17.2",70 "hbs": "4.2.0",71 "istanbul": "0.4.5",71 "marked": "0.7.0",72 "method-override": "3.0.0",73 "mocha": "9.2.0",74 "morgan": "1.10.0",75 "multiparty": "4.2.2",76 "nyc": "15.1.0",77 "pbkdf2-password": "1.2.1",78 "should": "13.2.3",79 "supertest": "6.2.2",80 "vhost": "~3.0.2"
10 unmodified lines
91 ],92 "scripts": {93 "lint": "eslint .",94 "test": "mocha --require test/support/env --reporter spec --bail --check-leaks test/ test/acceptance/",95 "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/ test/acceptance/",96 "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks test/ test/acceptance/",95 "test-ci": "nyc --reporter=lcovonly --reporter=text npm test",96 "test-cov": "nyc --reporter=html --reporter=text npm test",97 "test-tap": "mocha --require test/support/env --reporter tap --check-leaks test/ test/acceptance/"98 }99}