pytest-parallel
pytest-parallel copied to clipboard
The plugin does not fire any setup / tear down events for child threads make it extremely hard to implement extensions
The plugin works around calling pytest_runtest_protocol
hook of pytest
. It does not signal to new forks when test processing starting (lesser problem) and does not signal when test processing ended (greater problem). This makes impossible to gracefully finish other plugins which work during the whole pytest
lifecycle. E.G. in my project I can't catch the moment when to upload the last log batch on our server. Thus I constantly lose the tail of logs if my users use pytest-parallel
. And I can't also use fully async client by the same reason. I won't get the whole batch of test items because pytest-parallel
terminates child process execution instantly.
The situation makes me deprecate using pytest-parallel
along with my plugin. Unless pytest-parallel
provide necessary options.