pytest-skip-slow is a pytest plugin that enhances test execution by allowing users to mark tests as 'slow'. By default, tests marked with `@pytest.mark.slow` are skipped, helping maintain a fast local development feedback loop. These slow tests can then be explicitly included using the `--slow` command-line option. The current version is 0.0.5, released in February 2023, indicating a mature but infrequently updated project.
pip install pytest-skip-slowVerified import paths — ran on the pinned version, not inferred.
Mark your long-running tests with `@pytest.mark.slow`. By default, `pytest` will skip these tests after the plugin is installed. To include and run these slow tests, use the `--slow` command-line option. To run only slow tests, combine with the marker expression `-m slow`.
Use `pytest -m slow --slow` to execute only the tests marked as slow.
Add `slow: marks tests as slow` under the `[pytest]` section in your `pytest.ini` file.
Ensure `pytest-skip-slow` is installed in your active Python environment: `pip install pytest-skip-slow`.
To include and run these tests, execute `pytest --slow`.
Add `markers = slow: marks tests as slow` to the `[pytest]` section of your `pytest.ini` file to suppress this warning.