You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
Could you provide (screenshots of the) HTML report? I'm curious to see where the differences are coming from.
StrykerJS should be deterministic, but some variables can still change the score. For example, computer use during mutation testing might cause some test runner processes to starve, resulting in timeout mutants (false positive).
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
The text was updated successfully, but these errors were encountered: