Commit c2d55cbc authored by Erwan Bousse's avatar Erwan Bousse
Browse files

Add mutation testing support with stryker

parent 4baed115
......@@ -22,6 +22,10 @@
"typescript": "^3.3.3"
},
"devDependencies": {
"@stryker-mutator/core": "^1.0.2",
"@stryker-mutator/jasmine-framework": "^1.0.2",
"@stryker-mutator/jasmine-runner": "^1.0.2",
"@stryker-mutator/typescript": "^1.0.2",
"@types/jasmine": "^3.3.9",
"jasmine": "^3.3.1",
"jasmine-core": "^3.3.0",
......@@ -31,4 +35,4 @@
"type": "git",
"url": "git@gitlab.univ-nantes.fr:naomod/software-development-course/onlineChess.git"
}
}
}
\ No newline at end of file
{
"spec_dir": "build/spec",
"spec_files": [
"**/*[sS]pec.js"
],
"helpers": [
"helpers/**/*.js"
],
"stopSpecOnExpectationFailure": false,
"random": true
}
module.exports = function(config) {
config.set({
mutator: "typescript",
packageManager: "npm",
reporters: ["clear-text", "progress"],
testRunner: "jasmine",
transpilers: ["typescript"],
testFramework: "jasmine",
coverageAnalysis: "perTest",
jasmineConfigFile: "spec/support/jasmine-stryker.json",
tsconfigFile: "tsconfig.json",
mutate: ["src/move-validation.ts"]
});
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment