pytest-dev / pytest-dev/pytest-xdist
since 1.30.0 pytest-xdist is running all the tests without respecting command line argument
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 287
- Avg merge
- 9h 30m
- Merged PRs (30d)
- 2
Description
Directory structure:
ls test/
pycache test_another.py test_example.py
In pytest-xdist-1.29.0:
(venv) C02TW0XZHV2R:pytest sahbab01$ python -m pytest -s -d --tx socket=btools-linux-iar-7-8.server.eu02.arm.com:8888 --rsyncdir /Users/sahbab01/work/pytest/test/ test/test_example.py
=========================================================================================== test session starts ============================================================================================
platform darwin -- Python 3.7.4, pytest-5.2.2, py-1.8.0, pluggy-0.13.0
rootdir: /Users/sahbab01/work/pytest
plugins: xdist-1.29.0, forked-1.0.2
gw0 [2]
..
In pytest-xdist-1.30.0:
(venv) C02TW0XZHV2R:pytest sahbab01$ python -m pytest -s -d --tx socket=btools-linux-iar-7-8.server.eu02.arm.com:8888 --rsyncdir /Users/sahbab01/work/pytest/test/ test/test_example.py
=========================================================================================== test session starts ============================================================================================
platform darwin -- Python 3.7.4, pytest-5.2.2, py-1.8.0, pluggy-0.13.0
rootdir: /Users/sahbab01/work/pytest
plugins: xdist-1.30.0, forked-1.0.2
gw0 [5]
.....
============================================================================================ 5 passed in 0.62s =============================================================================================
(venv) C02TW0XZHV2R:pytest sahbab01$
pytest-xdist is running all the tests even though only one test case is specified to run.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the shown pytest command against pytest-xdist 1.29.0 and 1.30.0, using test/test_example.py while test/test_another.py is present. Compare how the two versions handle the selected test path and distributed execution. Done means only the requested test file runs rather than all five tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100