Skip to content

endorse https://pypi.org/project/pytest-skip-slow/ for the slow marker #14834

Closed

Description

@WilliamJamieson

What's the problem this feature will solve?

I have seen the slow marker implemented as part of several different pytest-plugins such as pytest-skip-slow, ci-watson, and pytest-astropy.

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.

Activity

  1. pllim commented on Aug 4, 2026

    @pllim
    Contributor

    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

  2. RonnyPfannschmidt commented on Aug 4, 2026

    @RonnyPfannschmidt
    Member

    Im of the impression the next step would be endorsing the plugin by @okken

    Later it can go into core

  3. changed the title [-]Add a `slow` marker[/-] [+]endorse https://pypi.org/project/pytest-skip-slow/ for the slow marker[/+] on Aug 9, 2026
  4. added
    type: docs
    good first issue
    on Aug 9, 2026
  5. Shriprasad-P commented on Aug 9, 2026

    @Shriprasad-P
    Contributor

    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-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuetype: docs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions