Skip to content

Commit 09d7616

Browse files
author
Christopher J. Brody
committed
add Stryker Mutator
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
1 parent d06078f commit 09d7616

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ node_modules/*
22
.DS_Store
33
npm-debug.log
44
package-lock.json
5+
.stryker-tmp
6+
reports

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
"uuid": "^3.3.2"
1616
},
1717
"devDependencies": {
18+
"@stryker-mutator/core": "^2.1.0",
19+
"@stryker-mutator/html-reporter": "^2.1.0",
20+
"@stryker-mutator/javascript-mutator": "^2.1.0",
1821
"nodeunit": "^0.11.3",
1922
"pegjs": "^0.10.0"
2023
},
2124
"scripts": {
2225
"pegjs": "node_modules/.bin/pegjs lib/parser/pbxproj.pegjs",
26+
"stryker": "stryker run",
2327
"test": "node_modules/.bin/nodeunit test/parser test"
2428
},
2529
"license": "Apache-2.0",

stryker.conf.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = function(config) {
2+
config.set({
3+
mutator: "javascript",
4+
mutate: [ 'lib/*.js' ],
5+
packageManager: "npm",
6+
reporters: ["html", "clear-text", "progress"],
7+
testRunner: "command",
8+
transpilers: [],
9+
coverageAnalysis: "all"
10+
});
11+
};

0 commit comments

Comments
 (0)