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

Summary output to stdout mentioning each test case twice #76

Open
DavidFarago opened this issue Jun 29, 2020 · 2 comments · May be fixed by #108
Open

Summary output to stdout mentioning each test case twice #76

DavidFarago opened this issue Jun 29, 2020 · 2 comments · May be fixed by #108

Comments

@DavidFarago
Copy link

DavidFarago commented Jun 29, 2020

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
Copy link

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
Copy link

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.

codeRulc added a commit to codeRulc/pytest-parallel that referenced this issue May 21, 2021
alexlatchford added a commit to alexlatchford/pytest-parallel that referenced this issue Nov 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants