Skip to content

Commit

Permalink
add Stryker Mutator
Browse files Browse the repository at this point in the history
according to https://stryker-mutator.io/stryker/quickstart (using npx)

with mutation testing limited to `lib/*.js`
(`lib/parser/pbxproj.js` not included)

and add generated Stryker artifacts to .gitignore
  • Loading branch information
Christopher J. Brody committed Oct 17, 2019
1 parent d06078f commit 09d7616
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules/*
.DS_Store
npm-debug.log
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 @@ -15,11 +15,15 @@
"uuid": "^3.3.2"
},
"devDependencies": {
"@stryker-mutator/core": "^2.1.0",
"@stryker-mutator/html-reporter": "^2.1.0",
"@stryker-mutator/javascript-mutator": "^2.1.0",
"nodeunit": "^0.11.3",
"pegjs": "^0.10.0"
},
"scripts": {
"pegjs": "node_modules/.bin/pegjs lib/parser/pbxproj.pegjs",
"stryker": "stryker run",
"test": "node_modules/.bin/nodeunit test/parser test"
},
"license": "Apache-2.0",
Expand Down
11 changes: 11 additions & 0 deletions stryker.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = function(config) {
config.set({
mutator: "javascript",
mutate: [ 'lib/*.js' ],
packageManager: "npm",
reporters: ["html", "clear-text", "progress"],
testRunner: "command",
transpilers: [],
coverageAnalysis: "all"
});
};

0 comments on commit 09d7616

Please sign in to comment.