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 a way to mark slow tests and exclude them by default #338

Open
sol opened this issue Dec 22, 2017 · 2 comments
Open

Add a way to mark slow tests and exclude them by default #338

sol opened this issue Dec 22, 2017 · 2 comments

Comments

@sol
Copy link
Member

sol commented Dec 22, 2017

e.g. by tagging tests or something

@sol sol added this to the _|_ milestone Mar 14, 2018
@dnadales
Copy link

dnadales commented Dec 23, 2018

Adding my vote, as this will be really helpful for us at TorXakis. We have a compiler tests that takes a large file, and we'd like to avoid running this while running stack --file-watch :)

CC: @pjljvandelaar.

@sol sol removed this from the 2.6.0 milestone May 8, 2019
@sol
Copy link
Member Author

sol commented Apr 16, 2021

I think the following could make a nice API for this feature...

tag :: String -> SpecWith a -> SpecWith a
tag = undefined

...which then can be used like so...

it "behaves according to the spec" >>> tag "slow" >>> tag "db" $ do
  ...

@sol sol modified the milestones: 2.8.0, 2.9.0 Apr 18, 2021
@sol sol removed this from the later milestone May 12, 2021
@sol sol changed the title Add a way to mark slow tests and excluded them by default Add a way to mark slow tests and exclude them by default Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants