pytest-xdist
xdist: pytest distributed testing plugin
The pytest-xdist plugin extends pytest with some unique test execution modes:
test run parallelization: if you have multiple CPUs or hosts you can use those for a combined test run. This allows to speed up development or to use special resources of remote machines.
–looponfail: run your tests repeatedly in a subprocess. After each run pytest waits until a file in your project changes and then re-runs the previously failing tests. This is repeated until all tests pass after which again a full run is performed.
Multi-Platform coverage: you can specify different Python interpreters or different platforms and run tests in parallel on all of them.
Before running tests remotely, pytest efficiently “rsyncs” your program source code to the remote place. All test results are reported back and displayed to your local terminal. You may specify different Python versions and interpreters.
Note
This is an autogenerated page, more detail including examples may be available for this package. Please see the first section of Software on Stanage
After connecting to Stanage (see Establishing a SSH connection), start an interactive session with the following command:
srun --pty bash -i
A version of pytest-xdist can then be made available with one of the following:
module load pytest-xdist/2.5.0-GCCcore-11.3.0
module load pytest-xdist/2.5.0-GCCcore-11.3.0
Notes
pytest-xdist was installed using Easybuild, build details can be found in $EBROOTPYTESTMINXDIST/easybuild
with a given module loaded.