haskell - Using cabal to compile but not run the test suite? -
cabal test
compile test suite executable , run it. however, removes console colouring (because logs result). i'd use cabal build executable , run script, can't figure out how build executable.
if cabal configure --enable-tests
, cabal build
build not library/executables, test suites. can build individual test suites name, saying cabal build name-of-test-suite
.
you can run them manually appropriate subdirectories under dist/build
if don't want use cabal test
.
furthermore, if it's e.g. tasty
test suite, may able color output saying like
cabal test --show-details=always --test-option=--color --test-option=always
you can try --show-details=streaming
. don't know how robust is, though, , whether works may depend on platform on.
Comments
Post a Comment