You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
endorse https://pypi.org/project/pytest-skip-slow/ for the slow marker #14834
It would be nice to have a common implementation of a slow marker, one which only runs tests with the --slow or --run-slow argument to pytest.
Describe the solution you'd like
See above.
While not ideal, it is often the case that we end up with useful tests that are "slow" and/or expensive to run. In a perfect world, we would improve those tests or simply run them anyways; however, reality often makes this difficult. So a marker that skips these tests by default, but allows you to run them if you want, such as when you have sufficient resources to accomodate the test, would be practically useful.
Alternative Solutions
I have had to work with several different implementations of this, see my links above. While they all work fine, they have the annoying issue of stepping on each other when multiple of these plugins is installed, causing pytest to fail when it is being started up. I also know that this marker is used as an example in the docs, so there isn't a lack of options.
My reasoning for asking for it as part of pytest itself, is it seems like a fairly common use case (at least for my work). While something like a a single common implementation exists like pytest-skip-slow, that requires one to find/use that plugin AND make sure there isn't some other implementation of it lurking in your pytest testing stack.
Reacted by P. L. Lim, Joseph Hunkeler and Caio Semblano
changed the title [-]Add a `slow` marker[/-][+]endorse https://pypi.org/project/pytest-skip-slow/ for the slow marker[/+]on Aug 9, 2026
I read through the discussion and the contributing guide. My understanding is that the intended next step is to endorse pytest-skip-slow in pytest's documentation rather than implementing slow-marker support in core at this stage.
I was thinking of adding it to the annotated third-party plugin list in doc/en/how-to/plugins.rst, with a short description of its slow-test behavior and usage.
If that matches the intended scope, I'll proceed with the documentation change and follow the project's contribution and documentation checks.
Activity
pllim commentedon Aug 4, 2026
Just to clarify, if you want to see the custom slow marker in pytest-astropy, please look at https://github.com/astropy/pytest-astropy/releases/tag/v0.11.0 before it got replaced with pytest-skip-slow
RonnyPfannschmidt commentedon Aug 4, 2026
Im of the impression the next step would be endorsing the plugin by @okken
Later it can go into core
[-]Add a `slow` marker[/-][+]endorse https://pypi.org/project/pytest-skip-slow/ for the slow marker[/+]Shriprasad-P commentedon Aug 9, 2026
Hi! I'd like to work on this.
I read through the discussion and the contributing guide. My understanding is that the intended next step is to endorse
pytest-skip-slowin pytest's documentation rather than implementing slow-marker support in core at this stage.I was thinking of adding it to the annotated third-party plugin list in
doc/en/how-to/plugins.rst, with a short description of its slow-test behavior and usage.If that matches the intended scope, I'll proceed with the documentation change and follow the project's contribution and documentation checks.