Skip to content

Commit

Permalink
test(nyc): Temporarily fix issue where nyc reports lower coverage (#1329
Browse files Browse the repository at this point in the history
)

Temp fix for: istanbuljs/nyc#973
  • Loading branch information
nicojs authored and simondel committed Jan 23, 2019
1 parent 86a77b1 commit 470e7ec
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/stryker-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"start": "tsc -w",
"clean": "rimraf \"+(*.d.ts|*.js|*.map)\" \"src/**/+(*.d.ts|*.js|*.map)\" \"test/**/+(*.d.ts|*.js|*.map)\" \"testResources/module/+(*.d.ts|*.js|*.map)\" \"testResources/module/node_modules/stryker-api\" .nyc_output reports",
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 90 --functions 68 --branches 63 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 90 --functions 68 --branches 63 npm run mocha",
"mocha": "mocha \"test/unit/**/*.js\" && mocha --timeout 100000 \"test/integration/**/*.js\""
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-babel-transpiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "tsc -w",
"clean": "rimraf \"+(test|src)/**/*+(.d.ts|.js|.map)\" reports",
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 85 --functions 90 --branches 80 npm run mocha",
"test": "nyc --check-coverage --reporter=html --report-dir=reports/coverage --lines 90 --functions 90 --branches 90 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && mocha --timeout 100000 \"test/helpers/**/*.js\" \"test/integration/**/*.js\""
},
"nyc": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-html-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "node tasks/clientResources.js && npm run browserify-client-resources",
"browserify-client-resources": "browserify srcResources/stryker.js -o resources/stryker.js",
"start": "tsc -w -p .",
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 95 --functions 95 --branches 90 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 95 --functions 95 --branches 90 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && mocha --timeout 20000 \"test/helpers/**/*.js\" \"test/integration/**/*.js\""
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-jasmine-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "tsc -w",
"clean": "rimraf \"src/**/+(*.d.ts|*.js|*.map)\" \"test/**/+(*.d.ts|*.js|*.map)\" .nyc_output reports",
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 100 --functions 100 --branches 85 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 100 --functions 100 --branches 85 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" \"test/integration/**/*.js\""
},
"nyc": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-jasmine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "tsc -w",
"clean": "rimraf \"src/**/+(*.d.ts|*.js|*.map)\" \"test/**/+(*.d.ts|*.js|*.map)\" .nyc_output reports",
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 100 --functions 100 --branches 100 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 100 --functions 100 --branches 100 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && mocha --timeout 10000 \"test/helpers/**/*.js\" \"test/integration/**/*.js\""
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-javascript-mutator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "tsc -w",
"clean": "rimraf \"+(test|src)/**/*+(.d.ts|.js|.map)\" reports",
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 85 --functions 90 --branches 60 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 85 --functions 90 --branches 60 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" \"test/integration/**/*.js\""
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-jest-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "tsc -w",
"clean": "rimraf \"+(test|src)/**/*+(.d.ts|.js|.map)\" .nyc_output reports coverage",
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 80 --functions 80 --branches 75 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 80 --functions 80 --branches 75 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && mocha --timeout 30000 \"test/helpers/**/*.js\" \"test/integration/**/*.js\" --exit"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-karma-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "tsc -w",
"clean": "rimraf \"+(test|src)/**/*+(.d.ts|.js|.map)\" .nyc_output reports coverage __test_hooks_for_stryker__.js",
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 80 --functions 80 --branches 75 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 80 --functions 80 --branches 75 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && mocha --timeout 30000 \"test/helpers/**/*.js\" \"test/integration/**/*.js\" --exit"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-mocha-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "tsc -w",
"clean": "rimraf \"+(test|src)/**/*+(.d.ts|.js|.map)\" reports .nyc_output coverage",
"test": "nyc --include src/**/*.js --reporter=html --report-dir=reports/coverage --check-coverage --lines 100 --functions 100 --branches 100 npm run mocha",
"test": "nyc --include src/**/*.js --reporter=html --report-dir=reports/coverage --lines 100 --functions 100 --branches 100 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && mocha --timeout 10000 \"test/helpers/**/*.js\" \"test/integration/**/*.js\""
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-mocha-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "tsc -w",
"clean": "rimraf \"+(test|src)/**/*+(.d.ts|.js|.map)\" .nyc_output reports coverage",
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 80 --functions 80 --branches 75 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 80 --functions 80 --branches 75 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && mocha --timeout 10000 \"test/helpers/**/*.js\" \"test/integration/**/*.js\""
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"bootstrap": "npm link ../stryker-api && npm link ../stryker-mutator-specification",
"start": "tsc -w",
"clean": "rimraf \"+(test|src)/**/*+(.d.ts|.js|.map)\" reports",
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 90 --functions 100 --branches 90 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 90 --functions 100 --branches 90 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && mocha --timeout 20000 \"test/helpers/**/*.js\" \"test/integration/**/*.js\""
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"typings": "src/index.d.ts",
"scripts": {
"start": "tsc -w",
"test": "nyc --check-coverage --reporter=html --report-dir=reports/coverage --lines 90 --functions 95 --branches 75 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 90 --functions 95 --branches 75 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" \"test/integration/**/*.js\""
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-vue-mutator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "src/index.js",
"scripts": {
"start": "tsc -w",
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 85 --functions 90 --branches 60 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 85 --functions 90 --branches 60 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" \"test/integration/**/*.js\""
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-wct-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"typings": "src/index.d.ts",
"scripts": {
"start": "tsc -w",
"test": "cross-env LAUNCHPAD_BROWSERS=chrome nyc --check-coverage --reporter=html --report-dir=reports/coverage --lines 95 --functions 95 --branches 95 npm run mocha",
"test": "cross-env LAUNCHPAD_BROWSERS=chrome nyc --reporter=html --report-dir=reports/coverage --lines 95 --functions 95 --branches 95 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && if-node-version \">=8\" mocha --timeout 60000 --exit \"test/helpers/**/*.js\" \"test/integration/**/*.js\""
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stryker-webpack-transpiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A plugin for Webpack-based projects using Stryker",
"main": "src/index.js",
"scripts": {
"test": "nyc --reporter=html --report-dir=reports/coverage --check-coverage --lines 85 --functions 84 --branches 65 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 85 --functions 84 --branches 65 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && mocha --timeout 20000 \"test/helpers/**/*.js\" \"test/integration/**/*.js\"",
"stryker": "node ../stryker/bin/stryker run"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/stryker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"typings": "src/Stryker.d.ts",
"scripts": {
"start": "tsc -w",
"test": "nyc --check-coverage --reporter=html --report-dir=reports/coverage --lines 80 --functions 80 --branches 75 npm run mocha",
"test:original": "nyc --check-coverage --reporter=html --report-dir=reports/coverage --lines 80 --functions 80 --branches 75 npm run mocha",
"test": "nyc --reporter=html --report-dir=reports/coverage --lines 80 --functions 80 --branches 75 npm run mocha",
"mocha": "mocha \"test/helpers/**/*.js\" \"test/unit/**/*.js\" && mocha --timeout 15000 \"test/helpers/**/*.js\" \"test/integration/**/*.js\"",
"stryker": "node bin/stryker run"
},
Expand Down

0 comments on commit 470e7ec

Please sign in to comment.