Skip to content
Haskell Test Framework
Haskell Shell
Find file
Latest commit d73c62e @skogsbaer Merge pull request #58 from lslah/wrappableHTF
Add type class WrappableHTF.
Failed to load latest commit information.
Test WrappableHTF: Document WrappableHTF.
doc fix to blog article
sample fixed tests under stack
tests WrappableHTF: Add basic unit test.
.gitignore use cpphs as lexer, improve tests
.travis.yml replace prefix CPM_ with HTF_
ChangeLog preparations for
HTF.cabal fixed tests under stack
HTFPP.hs added --version to the --help output
LICENSE initial version Link to QuickCheck and HUnit packages on hackage. support for timeouts and test run history pimped some scripts for testing re-organized and improved tests use cpphs as lexer, improve tests
setup.hs Major rewrite
stack.yaml do ci with travis

HTF - The Haskell Test Framework

Build Status Hackage


The Haskell Test Framework (HTF for short) lets you define unit tests (, QuickCheck properties (, and black box tests in an easy and convenient way. HTF uses a custom preprocessor that collects test definitions automatically. Furthermore, the preprocessor allows HTF to report failing test cases with exact file name and line number information. Additionally, HTF tries to produce highly readable output for failing tests: for example, it colors and pretty prints expected and actual results and provides a diff between the two values.

Look here for a short tutorial on HTF. The following slightly out-dated blog article demonstrates HTF's coloring, pretty-printing and diff functionality.

Installation instructions

  • Install from using cabal install HTF
  • Install from source:

    $ git clone
    $ cd HTF
    $ cabal install

Getting started

  • Read the tutorial.
  • Experiment with the sample project located in the sample directory of HTF's source tree.
Something went wrong with that request. Please try again.