I have a cabal package for which I have a test-suite
set up using the exitcode-stdio-1.0
type, like so:
When I run it using cabal test
, cabal does not print the standard output/standard error of the executable; it only prints its own logging information:
$ cabal test
Running 1 test suites...
Test suite test-foo: RUNNING...
Test suite test-foo: PASS
Test suite logged to: dist/test/foo-0.0.1-test-foo.log
1 of 1 test suites (1 of 1 test cases) passed.
$
The output that I want is in that log file:
$ cat dist/test/foo-0.0.1-test-fo.log
Test suite test-foo: RUNNING...
HUnit group 1:
Expected connect: [OK]
Test Cases Total
Passed 1 1
Failed 0 0
Total 1 1
Test suite test-foo: PASS
Test suite logged to: dist/test/foo-0.0.1-test-foo.log
$
How do I get cabal to print this output to its own standard output? I can't find it in the documentation.