Current state of integrating unit tests with Haskell's Cabal? -


when google how integrate unit tests cabal files, either find

how run unit test using cabal (for example everytime "cabal build") today?

  1. make sure have latest version of cabal , cabal-install installed.

  2. have test-suite section in .cabal file. see this section of cabal's documentation explanation of how write test-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

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -