pytest-xdist
pytest-xdist copied to clipboard
pytest plugin for distributed testing and loop-on-failures testing modes.
I’m experiencing significant performance degradation when running tests with pytest-xdist in a Kubernetes environment compared to running them locally. **Environment Details** **Local Machine:** • CPU: 8 cores • Memory: 16...
# the problem i'm trying to create a `pytest_xdist_auto_num_workers` hook that should only be registered if the user runs pytest with the xdist plugin enabled, otherwise it will crash due...
Is there any chance to make pytest-xdist respect the order set by pytest-order (just the priority order): ``` @pytest.mark.order(2) def test_foo(): assert True @pytest.mark.order(1) def test_bar(): assert True ``` NOT...
* Optionally retain input ordering in loadscope for tests where relative ordering matters. i.e. guarantee that, given [input_1, input_2], input_2 never runs before input_1. On any given worker, either input_1...
Take a look at that execution > > C:\ec4a9867-4d56\qa-lsd-webservices>pytest --tc-file=configurations/utenze/eu-it1.ini --tc-file=configurations/puntamenti/legal.ini --dist=loadgroup -n auto --alluredir=allure-results/legal --force-flaky > parametro -> configurations/utenze/eu-it1.ini > parametro -> configurations/puntamenti/legal.ini > ============================================================================================= test session starts ==============================================================================================...
When pytest_runtest_protocol is called with item==nextitem multiple times, with a test that accepts some fixtures -> the second call forward raises an error. This is caused in WorkerInteractor when the...
This pull request addresses [Issue 1014](https://github.com/pytest-dev/pytest-xdist/issues/1014). It adds a new scheduler that allows a user to add tests to arbitrary groups using the pytest mark `xdist_custom`. Using the mark a...
READY FOR REVIEW (tests implemented and passing) ... **Implementation of the Distributed Scope Isolation scheduler `isoscope` for pytest-xdist**. # Background I developed this scheduler to facilitate a CI use case...
I noticed https://pytest-xdist.readthedocs.io/en/stable/known-limitations.html#order-and-amount-of-test-must-be-consistent And indeed I expect pytest to fail if I have some randomness in my test definitions (say a random parameterized fixture). ``` Different tests were collected between...
Hey there :wave: I'm in the process of adding types to pytest-mypy, which integrates with xdist in part via the `pytest_configure_node` hook. The type for the `node` parameter is available...