Closed renlon closed 4 years ago
The issue only happen with pytest xdist 1.20 the issue resolved itself after upgrading xdist to 1.31
How to debug this?
Having similar configuration with
Python 3.7.9
pytest 6.2.2
pytest-xdist 2.1.1
pytest-json-report 1.2.4
@Silipwn Any chance you could give a reproducible example? Then I'm happy to take a look.
It actually worked out on a fresh install, I guess probably some cached package was causing the issue.
Encounter the following error when run pytest with pytest-xdist + pytest-json-report
Maybe this is more like a feature request. Or there is another way to run the test in xdist mode (multiple process in parallel) and get round this issue.
Here are the command options: Pytest command options: ['--json-report', '--json-report-file=./test-report.json', '-s', 'test-integ/', '-n', '8', '--dist=loadfile', '--max-slave-restart=0']
Here is the error:
Ptest-xdist 1.2.1 Python: 3.7 Pytest: 5.x Pytest-json-report: latest