I want to run an expensive Hspec test only when some flag on the command line is set for stack test
. I understand that I can use stack test --test-arguments=...
but what would I use on the command line and how would I carry out the conditional testing in my Spec.hs
? I can't seem to find a good example elsewhere online.
EDIT: Is it possible to get a test to be skipped when just running stack test
with no skip specified? Or would this be possible by having another similar specification file with just the expensive test in?