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
Remove race condition during testruns #135
Comments
I can start working on these changes. |
Hey @Valdas3 thanks in advance for your help! Feel free to find a suitable solution to fix the race conditions. The above is just my option :) @shadow-cs had another suggestion as to create a new testrunner instance for each mutant/thread. That would work as wel and maybe be more future proof. |
@Valdas3 Thanks for fixing this and testing it! Could you make a separate issue for the order in which reporter events are handled? It shouldn't be this way :) |
The new feature parallel testruns caused race conditions to occur during mutation testruns, as seen in #122. Changing the testrunner interface and implementation should fix this.
Currently the method
SetActiveMutation()
sets a property inside the testrunner instance. This property is used during theRunAll()
method call to start an sub-process with the id from the property in the environment of the sub-process.If the property changed in between the calls
SetActiveMutation()
andRunAll()
the sub-process will use the wrong id in it's environment.The interface
Should become
The
DotnetTestRunner
implementation should be updated and the unit tests as well.The text was updated successfully, but these errors were encountered: