pytest-repeat icon indicating copy to clipboard operation
pytest-repeat copied to clipboard

pytest plugin for repeating test execution

Results 30 pytest-repeat issues
Sort by recently updated
recently updated
newest added

I merged pytest-stress and pytest-repeat and called it pytest-loop. Also added a fix for clearing previous reports so pytest-stress part did not keep appending results. https://github.com/anogowski/pytest-loop https://pypi.org/project/pytest-loop/ My merge completely...

Previously pytest 3.6+ were supported. Python 3.10 and 3.11 requires pytest 6+, so they can only be tested on pytest 6 and 7. Because we're dropping Python 2 and only...

Is there a way to "squash" repeated tests into one test result? ```python @pytest.mark.repeat(5) def test_example(): assert random.choice([True, False]) ``` This gives me 5 results. Is there something like `@pytest.mark.repeat(5,...

enhancement
help wanted

If I'd like to use/display the current iteration count, is there any way to do that from within the Python test code?

enhancement

The [rerunfailures](https://github.com/pytest-dev/pytest-rerunfailures) plugin can be used to detect flaky tests and ignore them by trying to rerun previous failed tests. If a repeated run succeeds that is then considered "good...

enhancement

`pytest tests/test_database.py::TestDatabaseFixtures::test_access\[db\]` works, but adding `--count 10` fails: > collecting 0 items > ERROR: not found: …/Vcs/pytest-django/tests/test_database.py::TestDatabaseFixtures::test_access[db] > (no name '…/Vcs/pytest-django/tests/test_database.py::TestDatabaseFixtures::test_access[db]' in any of []) pytest version 3.6.3.dev5+gb7b9c54d

enhancement

I'm trying to package your module as rpm packag. So I'm using typical in such case build, install and test cycle used on building package from non-root account: - "setup.py...

I find the plugin pytest-flakefinder (https://github.com/dropbox/pytest-flakefinder), which seems to support UnitTest Style Tests already. You may want to refer to this file: https://github.com/dropbox/pytest-flakefinder/blob/master/tests/test_flakefinder.py Do you think it helpful for pytest-repeat?

documentation

I have a simple test with parametrize and fixture: ```python @pytest.mark.repeat(3) @pytest.parametrize("case", ["a","b","c"]) def test_1(case, my_fixture): print("test_1 case: {}".format(case)) @pytest.fixture(scope="?") def my_fixture(): yield # Executed at the end of the...