-
Notifications
You must be signed in to change notification settings - Fork 594
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
Better process isolation #165
Comments
Closing this, as Conjecture has been part of Hypothesis since 3.0 and we run our own tests with multiple processes so it must be working! |
Nope. This is specifically about running each example in its own subprocess, not whole tests. |
Ooh, okay. Sounds expensive but I can see that it would make sense sometimes. |
In #2340, it took a while to work out that the code under test was hanging, and so the engine code could neither see that |
Currently if you want to have process isolation for your tests you can use the forking executor.
But you probably shouldn’t. It has a number of weird limitations: It may (usually will) interact poorly with how test runners capture output, and for reasons that will be completely opaque to you but make sense I promise some examples will not minimize correctly.
I’d like to make this better and integrate it more thoroughly into Hypothesis, so it’s just a config item to get process isolation and it should transparently work with things. Ideally this would give built in parallel test execution too.
This may end up dependent on conjecture integration
The text was updated successfully, but these errors were encountered: