Current state of integrating unit tests with Haskell's Cabal? -
when google how integrate unit tests cabal files, either find
- http://www.haskell.org/haskellwiki/how_to_write_a_haskell_program not seem describe integration of hunit/quickcheck cabal file
- or see messages "wait cabal x.y support cabal test" can not find documentation either
how run unit test using cabal (for example everytime "cabal build") today?
make sure have latest version of cabal , cabal-install installed.
have
test-suite
section in.cabal
file. see this section of cabal's documentation explanation of how writetest-suite
section in cabal file , this section instructions on how run it.
i've been using built-in test support time , has saved me having maintain fragile makefiles tests. there still rough edges in command line output of cabal test
, have been fixed in head in next cabal/cabal-install release should smooth.
Comments
Post a Comment