pytest-skip-slow
A pytest plugin to skip `@pytest.mark.slow` tests by default.
What it is and what it does
pytest-skip-slow is a pytest plugin that automatically skips tests marked with `@pytest.mark.slow` or `@pytest.mark.hugemem` during normal test runs. This lets you maintain a comprehensive test suite without slowing down everyday development cycles—developers run the full suite only when explicitly requested via `--slow` or `--hugemem` flags, or in CI/CD pipelines where you want to catch all issues.
The plugin integrates directly into pytest's marker system, so you simply decorate slow or memory-intensive tests with the appropriate marker and the plugin handles the rest. It's a lightweight, zero-configuration addition to pytest that requires only pytest as a dependency and works with Python 3.8 and later.
Use it for:
- Skip long-running integration or end-to-end tests during local development, running only fast unit tests by default.
- Exclude memory-intensive tests from CI pipelines that run on resource-constrained agents, enabling them only on dedicated hardware.
- Maintain a single test suite where developers can opt into slow tests with a single flag when debugging or validating a full test run.
- Separate performance or stress tests from the standard test flow without removing them from the codebase.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pytest plugin that skips tests marked with `@pytest.mark.slow` or `@pytest.mark.hugemem` by default, and includes them only when you pass `--slow` or `--hugemem` flags.
Yes. This is a lightweight, actively maintained plugin with no security issues, low install friction, and a clear, focused purpose. If your test suite includes slow or memory-intensive tests that you want to skip by default during development, it solves that problem with minimal overhead and no configuration required.
Install
pytest-skip-slow on PyPI
pip
pip install pytest-skip-slowuv
uv add pytest-skip-slowpoetry
poetry add pytest-skip-slowInstalling pytest-skip-slow
Before you install
Low friction: pure Python wheel with only pytest as a runtime dependency. Actively maintained with a recent release (79 days ago) and no known vulnerabilities.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install pytest-skip-slow
# In your test file:
import pytest
@pytest.mark.slow
def test_slow_operation():
pass
# Run normally (skips slow tests):
# pytest test_file.py
# Run with slow tests included:
# pytest --slow test_file.py
Requires pytest as a runtime dependency; Python 3.8 or later.
Verify before relying
- Whether the plugin works with pytest versions older than the current release or only recent versions.
- Performance impact of the plugin on test collection or execution in large test suites.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pytest |
| Maintenance | actively maintained — 79 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 244,208/month — #8,760 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytest_skip_slow-1.1.0-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
pytest-ignore-test-resultsA pytest plugin that selectively ignores test…
permissive · top 15,000 on PyPI
pytest-onlyA pytest plugin that runs only tests marked…
permissive · top 15,000 on PyPI
pytest-skip-markersA pytest plugin that provides skip markers to…
permissive · top 15,000 on PyPI
pytest-error-for-skipsA pytest plugin that converts skipped tests…
permissive · top 15,000 on PyPI
pytest-pickedA pytest plugin that automatically runs only…
permissive · top 5,000 on PyPI
pytest-testmonA pytest plugin that automatically identifies…
permissive · top 5,000 on PyPI
pytest-timestamperA pytest plugin that prefixes each test output…
unclear · top 15,000 on PyPI
pytest-remotedataA pytest plugin that lets you mark and…
permissive · top 15,000 on PyPI
pytest-cacheA pytest plugin that persists test state across…
permissive · top 15,000 on PyPI
pytest-codeblocksA pytest plugin that automatically discovers…
permissive · top 15,000 on PyPI