When I use stack locally with test suite (Hspec), it prints tests cases (their names, contexts) in real time. Now I need to force this behavior on Travis CI (where I use Cabal) because my test suite has begun to take longer than 10 minutes and I end up with:
No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
Tried --show-details=streaming
without success (also in combination with
--test-option=--format=progress
).
Commands that are executed (a variant):
cabal install --only-dependencies --enable-tests
cabal configure --enable-tests --enable-coverage -v2
cabal build
cabal test --show-details=streaming --test-option=--format=progress
It looks like you aren't compiling your program with the -threaded
flag. This is required, otherwise it will behave as if you had set --show-details=always
, even if you had set --show-details=streaming
.
The reason I wanted to look at your cabal file is you might have set -threaded
there.