18 Mar 2013 12:23
How to use the nice test output spit out by test-framework with "cabal test"?
Alfredo Di Napoli <alfredo.dinapoli <at> gmail.com>
2013-03-18 11:23:01 GMT
2013-03-18 11:23:01 GMT
Hi guys,
I've been wondering for a long time about how to use the nice terminal-base report spit out from test-framework when I type "cabal test".
Atm this is my run-of-the-mill cabal setting:
test-suite test-all
type: exitcode-stdio-1.0
main-is: Main.hs
ghc-options: -w -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs: tests
[...]
but this runs tests using the default cabal interface:
Linking dist/build/test-all/test-all ...
Running 1 test suites...
Test suite test-all: RUNNING...
Test suite test-all: PASS
Test suite logged to: dist/test/opencv-simple-0.1.0.0-test-all.log
1 of 1 test suites (1 of 1 test cases) passed.
This is, instead, what I wanted when I type "cabal test" and "cabal install --enable-tests":
is it possible?
Thanks in advance,
A.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed