a project template for unit test using cabal
Haskell Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
LICENSE
README.md
Setup.hs
coverage-report.sh
unittest-example.cabal

README.md

Haskell Unit Test Project Template

a project template for unit test using cabal.

To run a single test:

$ cd src
$ runhaskell UnitTest/Util/NumericTest.hs

To run a module test:

$ cd src
$ runhaskell UnitTest/Util.hs

To run whole test:

$ cabal configure --enable-tests --enable-library-coverage
$ cabal build
$ cabal test

To check test coverage report

$ ./coverage-report.sh