{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"A pytest plugin that repeats test execution a specified number of times, useful for detecting intermittent failures or stress-testing flaky tests.","skillfed_tags":["test-reliability","pytest-plugin","flaky-test-detection"],"use_cases":["Reproduce intermittent test failures by running a test hundreds or thousands of times until it fails.","Stress-test a test suite to detect race conditions or state-management bugs.","Validate test reliability before merging by repeating critical tests multiple times in CI.","Debug timing-sensitive code by repeating tests with different execution orders using --repeat-scope.","Confirm a bug fix by repeating a previously failing test to ensure it now passes consistently."],"what_it_does":"pytest-repeat is a pytest plugin that adds the ability to run tests multiple times in a single invocation. You control repetition either via the --count command-line flag (to repeat all collected tests) or by decorating individual tests with @pytest.mark.repeat(count). The plugin supports different repetition scopes (function, module, class, or session) to control whether tests repeat individually or in groups.\n\nIt's primarily useful for diagnosing intermittent or flaky tests by running them repeatedly until a failure occurs (often combined with pytest's -x flag to stop on first failure). The package has been stable since its early releases and supports modern Python versions (3.9+), though it does not work with unittest.TestCase classes.","worth_installing":"Yes, if you work with flaky or intermittent test failures. The plugin is stable, has low install friction, and solves a real problem in test diagnostics. The copyleft license is straightforward for most projects. Not necessary if your test suite is deterministic and reliable."},"id":"pytest-repeat","links":{"html":"https://skillfed.io/packages/pytest-repeat","md":"https://skillfed.io/packages/pytest-repeat.md","pypi":"https://pypi.org/project/pytest-repeat/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-04-07","license_spdx":null,"license_treatment":"copyleft","name":"pytest-repeat","python_support":"supports_current","summary":"pytest plugin for repeating tests"},"popularity":{"monthly_downloads":15509841,"position":1183,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.9.4"}
