Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try Stryker (v2) testing, for evaluation, etc. - outdated #16

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@
coverage
.idea
package-lock.json
.stryker-tmp
reports
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
"@babel/preset-env": "7.7.1",
"@rollup/plugin-alias": "2.2.0",
"@rollup/plugin-replace": "2.2.1",
"@stryker-mutator/core": "2.3.0",
"@stryker-mutator/html-reporter": "2.3.0",
"@stryker-mutator/javascript-mutator": "2.3.0",
"babel-loader": "8.0.6",
"benchmark": "2.1.4",
"builtin-modules": "3.1.0",
Expand Down Expand Up @@ -127,6 +130,7 @@
"lint": "cross-env EFF_NO_LINK_RULES=true eslint . --format friendly",
"lint-docs": "prettylint {.,docs,website,website/blog}/*.md",
"lint-dist": "eslint --no-eslintrc --no-ignore --env=browser \"dist/!(bin-prettier|index|third-party).js\"",
"stryker": "stryker run",
"build": "node --max-old-space-size=3072 ./scripts/build/build.js",
"build-docs": "node ./scripts/build-docs.js",
"check-deps": "node ./scripts/check-deps.js",
Expand Down
26 changes: 26 additions & 0 deletions stryker.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"use strict";

module.exports = function(config) {
config.set({
mutator: "javascript",
mutate: [
// [FUTURE TBD] this seems to take about 100 hours on a 40-CPU server in the cloud:
// "src/**/*.js"
// [TBD] mutation testing limited to src/common for now:
// "src/cli/*.js"
// ... , ...
"src/common/*.js"
// ... , ...
// "src/language-js/*.js"
// ... , ...
// "src/utils/*.js"
],
packageManager: "yarn",
reporters: ["html", "clear-text", "progress"],
testRunner: "command",
// TBD ???:
timeoutMS: 15 * 60 * 1000,
transpilers: [],
coverageAnalysis: "off"
});
};
Loading