Skip to content

Pytest speedup when running a single test#2538

Merged
giampaolo merged 7 commits into
masterfrom
pytest-speedup
Apr 4, 2025
Merged

Pytest speedup when running a single test#2538
giampaolo merged 7 commits into
masterfrom
pytest-speedup

Conversation

@giampaolo
Copy link
Copy Markdown
Owner

@giampaolo giampaolo commented Apr 4, 2025

Disable unused pytest plugins via PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 env var, gaining around 0.12 secs when running an individual test via CLI. See blog post:
https://gmpy.dev/blog/2025/speedup-pytest-startup

@giampaolo giampaolo merged commit 9ff21dd into master Apr 4, 2025
28 of 31 checks passed
@giampaolo giampaolo deleted the pytest-speedup branch April 4, 2025 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant