hspec icon indicating copy to clipboard operation
hspec copied to clipboard

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

Open sol opened this issue 6 years ago • 2 comments

e.g. by tagging tests or something

sol avatar Dec 22 '17 15:12 sol

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.

dnadales avatar Dec 23 '18 12:12 dnadales

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 avatar Apr 16 '21 00:04 sol