[Haskell-cafe] How to use the nice test output spit out by test-framework with "cabal test"?

Alfredo Di Napoli alfredo.dinapoli at gmail.com
Mon Mar 18 12:23:01 CET 2013


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":

http://batterseapower.github.com/test-framework/images/example.png

is it possible?

Thanks in advance,

A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130318/b8bfd8eb/attachment.htm>


More information about the Haskell-Cafe mailing list