Mutation never killed #3237
Replies: 3 comments
-
Are the tests correctly identified as being related to the mutant? We match unit tests with mutants and if we make a mistake here, it could be that stryker does not recognize the unit test and does not execute it. You can try running stryker with coverage analysis turned off and see if the mutant is killed then: https://stryker-mutator.io/docs/stryker-net/configuration/#coverage-analysis-string If so, we may have a detection issue. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Here is the overall strategy when you face surprising results such as here:
Conclusion: at this stage, either Stryker is not able to properly run the tests, leading to every mutant being a survivor, but it should appear in the log or some tests are failing, and this will appear in the log as well. Note: this project looks familiar to me, is it some kind of sample project/app? I am merely asking to see if we could try and reproduce the issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm wondering if I'm totally dumb because I can't kill any mutation.
I have a project on .Net 9, with the last release of Stryker.
Here's a sample case:

As you can see the third mutation is the removal of the call to repository.
I have two tests failing if I remove manually the call to the repo, but Stryker still consider mutants have survived.
Is anyone there having an idea about this issue ?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions