pytest-dev / pytest-dev/pytest-xdist
pytest-xdist running on remote socket server does not support defined testpaths
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 287
- Avg merge
- 9h 30m
- Merged PRs (30d)
- 2
Description
Hello,
I use pytest-xdist to do the testing and the command is as below, I add testpaths [test_cases/staff_group/] in the pytest.ini file but it does not find the test method from the testpaths, no test method is found, if I remove this testpaths, it will find all test methods to run. Please help to check why I can not define the testpaths for the remote socket server to run? Thanks.
pytest --dist loadscope --tx socket=localhost:8888 --rsyncdir .
pytest.ini
[pytest]
addopts = test_cases/staff_group/ -vrA --env=qa --reruns=0 --reruns-delay=2 --html=D:\ui_report\report.html
etadata: {'Python': '3.8.5', 'Platform': 'Windows-10-10.0.19041-SP0', 'Packages': {'pytest': '6.2.4', 'py': '1.10.0', 'pluggy': '0.13.1'}, 'Plugins': {'dependency': '0.5.1', 'forked': '1.3.0', 'html': '2
.0.1', 'metadata': '1.11.0', 'ordering': '0.6', 'rerunfailures': '10.1', 'xdist': '2.3.0', 'seleniumbase': '1.63.17'}
configfile: pytest.ini
plugins: dependency-0.5.1, forked-1.3.0, html-2.0.1, metadata-1.11.0, ordering-0.6, rerunfailures-10.1, xdist-2.3.0, seleniumbase-1.63.17
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
Start by reproducing the remote socket run with pytest.ini and the command using --tx socket=localhost:8888, comparing behavior with and without the configured test path. Trace how test selection is transferred to the remote worker and confirm that the configured test_cases/staff_group/ tests are collected and run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- distributed-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100