Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

The plugin does not fire any setup / tear down events for child threads make it extremely hard to implement extensions #112

Open
HardNorth opened this issue Apr 19, 2022 · 0 comments

Comments

@HardNorth
Copy link

HardNorth commented Apr 19, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant