-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mutation test report showing zero mutation score #2686
Comments
All the mutants have the state survived this means no test failed when they were put into your code. Because of this, you get a score of 0%. If you add (more) tests for the code that is being mutated, your score might increase because tests may fail when the mutant is inserted. More info can be found here: https://stryker-mutator.io/docs/ |
@simondel i ran it for a bigger piece of code/test, even this has the mutation scrore has zero,please see the screenshot attached, its even bigger than the screen shot but all of them are zero. |
Are you using app-root-path or NODE_PATH to redefine imports? If so, Stryker might be running your un-mutated code, instead of running your code in the sandbox. |
@nicojs not using app-root-path/node_path, the stryker is running in the sandbox, see the logs from the run:
|
I think I've found the cause while I was implementing @LokeshGangaiah please try again with |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Question
Why would my report show the score has zero ? please see the attached screen shot
Stryker environment
Additional context
this will not happen if i run or include more test scenarios or something like that i am not sure need to debug why
The text was updated successfully, but these errors were encountered: