kevlened / pytest-parallel

A pytest plugin for parallel and concurrent testing
https://github.com/browsertron/pytest-parallel/issues/104#issuecomment-1293941066
MIT License
313 stars 60 forks source link

Pytest UserWarning is not coming up on std out for 0.1.0 release #72

Open guntyagi opened 4 years ago

guntyagi commented 4 years ago

We have a few parallel tests that often generates user-defined warnings. The way we use these warnings is via stdout, which are later picked up by builbot and highlighted accordingly.

The tests work perfectly with respect to warnings with library 0.0.10. However, if we use the 0.1.0 version, the warnings are not coming up on the stdout.

guntyagi commented 4 years ago

Interestingly, if we run the tests pytest 'test_directory" > it works with both versions of pytest-parallel( 0.1.0 & 0.0.10)

But if we run the tests python -m pytest 'test_direcotry' > the warnings come only with 0.0.10 version.

Also, we are running multiple tests in a single session using workers.