I've only used Python's Process API in very trivial ways, so the following may be wildly off the mark: I took a brief look at how the parallelization provided by this library works and I think you could achieve the standard pytest behavior by running a loop while the processes are in progress, checking their exitcodes and terminating all of the others (and closing the queue?) if any one returns a failure exitcode.
Is this something you'd consider doing? If so, I could try to put a PR together.
Either way, this library has been a tremendous productivity booster and reduced the run time of my test suite from ~11 minutes to ~2 minutes. So, thanks!
Given the following pytest.ini configuration file:
I see the following when running my test suite containing an unhandled exception.
I've only used Python's
Process
API in very trivial ways, so the following may be wildly off the mark: I took a brief look at how the parallelization provided by this library works and I think you could achieve the standard pytest behavior by running a loop while the processes are in progress, checking theirexitcode
s and terminating all of the others (and closing the queue?) if any one returns a failureexitcode
.Is this something you'd consider doing? If so, I could try to put a PR together.
Either way, this library has been a tremendous productivity booster and reduced the run time of my test suite from ~11 minutes to ~2 minutes. So, thanks!