Home

Awesome

haskell-testing-stub

IMPORTANT: This repository is now hosted on BitBucket.

This stub project demonstrates how to organize code tests and benchmarks in a Haskell project. It shows how to:

Visit my blog for a detailed discussion of code testing and benchmarking in Haskell. See also comments in the source code.

Running tests

Execute these commands to compile and run tests:

cabal configure --enable-tests
cabal build
cabal test

Running benchmarks

Execute these commands to compile and run benchmarks:

cabal configure --enable-benchmarks
cabal build
cabal bench

Compiling the library

Execute these commands to install the library without benchmarking and testing code:

cabal configure
cabal build
cabal install