Pytest breakdown in a separate thread
We are adapting pytest for our integration testing and trying to use pytest fittings to trigger background check monitoring using separate threads.
The monitor threads do not start at startup when we are using the instrument, but I have not found a way for pytest to complete the main test if one of the background monitor threads detects a problem.
Does anyone know a good way to do this in pytest? Is there any hook we could use in the main pytest theme to catch pytest.fail being called in one of our background monitor threads?
Thank!
+3
source to share
No one has answered this question yet
Check out similar questions: