{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/6"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"}],"enrichment":{"capability":"A pytest plugin that repeats tests a fixed number of times or for a specified duration, useful for detecting intermittent failures and stress-testing.","skillfed_tags":["pytest-plugin","flaky-test-diagnosis","stress-testing"],"use_cases":["Run a flaky test 1000 times with `-x` to stop at first failure and capture the failure condition.","Stress-test a test suite for 8 hours to detect resource leaks or timing-dependent bugs.","Mark a specific test with `@pytest.mark.loop(5)` to repeat only that test without modifying the command line.","Diagnose race conditions by looping concurrent or async tests for an extended duration.","Verify test stability before merging by running the full suite repeatedly for a fixed time window."],"what_it_does":"pytest-loop is a pytest plugin that lets you run the same test or test suite repeatedly\u2014either a fixed number of times or for a specified duration (hours, minutes, seconds). It's designed to help diagnose intermittent test failures by running tests many times in succession, and to perform stress testing by running tests continuously over a time window.\n\nThe plugin integrates with pytest's command-line interface and decorator system. You can specify repetition via `--loop=N` on the command line, or mark individual tests with `@pytest.mark.loop(N)`. For time-based looping, you use `--hours`, `--minutes`, and `--seconds` options, optionally with a `--delay` between iterations. It merges functionality from pytest-repeat and pytest-stress, and works with standard pytest test functions but not with unittest.TestCase classes.","worth_installing":"Yes. The plugin is actively maintained, has no known vulnerabilities, and solves a real problem\u2014detecting intermittent failures and stress-testing. Low install friction (one dependency, pure Python), broad Python version support, and Production/Stable status make it a safe choice for projects that need to diagnose flaky tests or validate stability under repeated execution."},"id":"pytest-loop","links":{"html":"https://skillfed.io/packages/pytest-loop","md":"https://skillfed.io/packages/pytest-loop.md","pypi":"https://pypi.org/project/pytest-loop/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-10-17","license_spdx":null,"license_treatment":"copyleft","name":"pytest-loop","python_support":"supports_current","summary":"pytest plugin for looping tests"},"popularity":{"monthly_downloads":321529,"position":7622,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.13"}
