Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add annotation to slower tests so devs can skip them #3491

Closed
wants to merge 1 commit into from

Conversation

pmcollins
Copy link
Member

Description

This change registers an annotation to mark any test method as 'slow'. It also annotates test methods that take roughly a full second or longer.

After this change, if you want to run tests but skip the slower ones, you can use -m 'not slow', as in tox -- -m 'not slow' or pytest -m 'not slow'. The slow marker may also be useful to developers running individual test methods manually (one of the test methods annotated in this PR, for example, takes several minutes on my machine).

However, by default, there is no intended change in behavior as a result of this PR -- all tests should still run locally and in CI by default.

@pmcollins
Copy link
Member Author

I'm going to close this for now -- instead will open a PR shortly to make the tests faster.

@pmcollins pmcollins closed this Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant