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.