Almost each time I run Stryker against my Angular v17 project I get different score without changing the code. I have noticed this issue because after getting a low score for a component I added the needed tests and the score went up. When I run the tests again, without any modification, the score dropped by about 20%.
Stryker config
// @ts-check
/** @type {import('@stryker-mutator/api/core').PartialStrykerOptions} */
const config = {
_comment:
"This config was generated using 'stryker init'. Please see the guide for more information: https://stryker-mutator.io/docs/stryker-js/guides/angular",
mutate: [
"src/**/*.component.ts",
"src/**/*.service.ts",
"src/**/*.interceptor.ts",
"!src/**/*.spec.ts",
"!src/test.ts",
"!src/environments/*.ts",
],
testRunner: "karma",
karma: {
configFile: "karma.conf.js",
projectType: "angular-cli",
config: {
browsers: ["ChromeHeadless"],
},
},
reporters: ["progress", "clear-text", "html"],
concurrency: 4,
concurrency_comment:
"Recommended to use about half of your available cores when running stryker with angular",
coverageAnalysis: "perTest",
};
export default config;
Summary
Almost each time I run Stryker against my Angular v17 project I get different score without changing the code. I have noticed this issue because after getting a low score for a component I added the needed tests and the score went up. When I run the tests again, without any modification, the score dropped by about 20%. Stryker config
Test runner config
Stryker environment
Test runner environment
Didn't configure karma so it has all defaults.
Your Environment
Add stryker.log