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

Summary output to stdout mentioning each test case twice #76

Open DavidFarago opened 4 years ago

DavidFarago commented 4 years ago

The output of pytest shows, e.g.:

pytest-parallel: 4 workers (processes), 5 tests per worker (threads) test/test_event_driven.py::test_foo FAILED test/test_event_driven.py::test_foo FAILED test/test_event_driven.py::test_bar PASSED test/test_event_driven.py::test_bar PASSED ...

I would have expected instead:

pytest-parallel: 4 workers (processes), 5 tests per worker (threads) test/test_event_driven.py::test_foo FAILED test/test_event_driven.py::test_bar PASSED ...

I believe the test cases are only executed once, since the error output of a failing test case only appears once, and when I list the slowest x test durations, I do not see doublets there.

Environment: platform linux -- Python 3.7.7, pytest-5.3.5, py-1.9.0, pluggy-0.13.1 -- /usr/local/bin/python plugins: clarity-0.3.0a0, parallel-0.1.0

nickmelchiorre commented 3 years ago

I downgraded from 0.1.0 to 0.0.10 and it solved this issue for me. Using platform darwin -- Python 3.7.0, pytest-6.1.2, py-1.9.0, pluggy-0.13.1

rschroll commented 3 years ago

This was introduced in either 0db048e or 10bfe64 (the latter fixed a bug that keeps the former from running). This seems to have been a rather extensive rewriting of communication with the test runners, and I don't know enough of the code to figure out what precisely caused this.