pytest-xdist
pytest-xdist copied to clipboard
pytest plugin for distributed testing and loop-on-failures testing modes.
I have an application that relies on running tests on remote devices by specifying either the `socket` or `ssh` spec. I'm trying to prepare my application for the upcoming removal...
It seems `--looponfail` does not compose with `--doctest-modules`. Or at least I have not been able to figure out how. Is there a way to run doctests with `--looponfail`?
I have the following plugin import logging import os import pytest from shutil import copyfile from utilities import constants, shared_resources class OutputHandler(object): """ This plugin handles the output captured for...
updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.1...v0.4.4) - [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.10.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.9.0...v1.10.0)
`pytest_sessionfinish` is a [built-in pytest hook](https://docs.pytest.org/en/8.0.x/reference/reference.html#std-hook-pytest_sessionfinish) method that executes after all tests finish. > Called after whole test run finished, right before returning the exit status to the system. pytest-xdist...
I see there are tickets opened and closed related to the same issue in the past. The tickets were closed with the reason saying the the issue is due to...
Hi, I have a simple test file of: ```python from gevent.monkey import is_module_patched, saved def test_auto(): if not is_module_patched("threading"): print(saved) print(saved.keys()) exit("not patched!") ``` When I run pytest normally with...
First at all, thanks for your time and the develop of this project. I've an issue where sometimes our CI system kills a thread (not python issue) and the affected...
Over the years I've used and introduced xdist whenever possibly to speed up pytest runs. Usually just using the `-n X` notation was sufficient. But in our current application, we...
I'm using python 3.10.14 and pytest 8.1.1. Looks like something is wrong and pytest fails in one unit. Here is pytest output: ```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-xdist-3.5.0-4.fc37.x86_64/usr/lib64/python3.10/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-xdist-3.5.0-4.fc37.x86_64/usr/lib/python3.10/site-packages + /usr/bin/pytest -ra -m 'not...