I have this Spec.hs:
import qualified OtherSpec
main :: IO ()
main = do
putStrLn "Test..."
OtherSpec.main
And I am planning to add more test suites from other modules to its main.
When I run tests as:
$ stack test --file-watch
A few things happen:
- Tests are re-run when
OtherSpec.hsis changed, but the test executable is not rebuilt. - When I change
Spec.hstest executable is rebuilt and changes inOtherSpec.hsis also picked.
Is there a way to trigger a rebuild when OtherSpec.hs changes?
Aucun commentaire:
Enregistrer un commentaire