Skip to main content

pytest-skip-slow

A pytest plugin to skip @pytest.mark.slow tests by default. Include the slow tests with --slow.

Installation

$ pip install pytest-skip-slow

Usage

Example test_slow.py:

import pytest

def test_normal():
    pass

@pytest.mark.slow
def test_slow():
    pass

Normal pytest sessions skip slow tests:

(venv) $ pytest -v test_slow.py
========================= test session starts ==========================
collected 2 items                                                      

test_slow.py::test_normal PASSED                                 [ 50%]
test_slow.py::test_slow SKIPPED (need --slow option to run)      [100%]

===================== 1 passed, 1 skipped in 0.00s =====================

Include the slow tests with --slow:

(venv) $ pytest -v --slow test_slow.py
========================= test session starts ==========================
collected 2 items                                                      

test_slow.py::test_normal PASSED                                 [ 50%]
test_slow.py::test_slow PASSED                                   [100%]

========================== 2 passed in 0.00s ===========================

Run only the slow tests with -m slow --slow:

(venv) $ pytest -v -m slow --slow test_slow.py 
========================= test session starts ==========================
collected 2 items / 1 deselected / 1 selected                          

test_slow.py::test_slow PASSED                                   [100%]

=================== 1 passed, 1 deselected in 0.00s ====================

Metadata

Release files for pytest-skip-slow 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-skip-slow 1.0
File Size Uploaded Provenance Actions
pytest_skip_slow-1.0.tar.gz 2.1 kB Without provenance Details for pytest_skip_slow-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-skip-slow 1.0
File Interpreter ABI Platform Actions
pytest_skip_slow-1.0-py3-none-any.whl Python 3 none any Details for pytest_skip_slow-1.0-py3-none-any.whl

Total release size: 5.0 kB

Release files / pytest_skip_slow-1.0.tar.gz

Download URL pytest_skip_slow-1.0.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a5ae9565467f2c178b8348e6cd8fda932cff7534c2ecfaab32bb53a5ff8264eb
BLAKE2b-256 checksum
How to use checksums
b29df9326d7e072dcb8a240793e41551baae5ad9693141dcead2b253402459ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.13

Release files / pytest_skip_slow-1.0-py3-none-any.whl

Download URL pytest_skip_slow-1.0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
390fac78c75b61057ad5147db9d73871c295f925a19a33f543fdb090ac02c30d
BLAKE2b-256 checksum
How to use checksums
0c8fcf0c0ac67949e35c57d26a0d22a6be395a614afb3019a7bdb936b690bc8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.13

Security for pytest-skip-slow 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page