pytest-xdist
pytest-xdist copied to clipboard
pytest plugin for distributed testing and loop-on-failures testing modes.
test.py ``` import pytest import time @pytest.mark.xdist_group(name="group1") def test_1_1(): time.sleep(5) assert True @pytest.mark.xdist_group(name="group1") def test_1_2(): time.sleep(5) assert True ``` ``` pytest -n auto --dist loadgroup test.py ``` Is there a...
I have many test cases that need to wait for all other cases to be executed before executing. However, the current grouping method does not support it
Stepwise is supposed to behave like `-x` but this doesn't work with xdist: > You may think of it as a combination of the -x option, which exits the test...
I am working in WSL 2 in a VSCode Devcontainer, and when I run pytest-xdist with -n AUTO as part of pyproject.toml it fails with: ``` ERROR: usage: pytest [options]...
I am trying to get log file for each worker. I have followed https://github.com/pytest-dev/pytest-xdist/issues/331. I have added code in conftest.py and pytest.ini file, but still separate log files are not...
Currently when running tests with `--dist loadgroup` any tests not tagged for loadgroup. Are then distributed normally as in the `--dist load` mode. It would be great if we would...
Hi team, Greetings. I have a question regarding the plugin when running in a read-only system like Databricks job clusters. I have disabled `__pycache__` creation when running `pytest` with: `PYTHONDONTWRITEBYTECODE=1`...
I'm facing a very weird issue. When I try to run my test in parallel- Only 1 browser opens even when I execute pytest -n 2 After first test is...
Hello everyone! I am using Terstrail plugin to report. So I need to know the list of test cases collected when calling pytest_collection_modifyitems on each node. Do you know how...
Pytest shows an unexpected error message with the following flags: ``` $ py.test -n0 --pdb --dist worksteal ERROR: --pdb is incompatible with distributing tests; try using -n0 or -nauto. ```...