Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Haskell Test Framework
Haskell Shell
branch: master
Failed to load latest commit information.
Test fixed bug that caused double quoted strings to appear in the output o…
doc fix to blog article
sample fixed various issues with tests
tests fixed bug that caused double quoted strings to appear in the output o…
.gitignore
ChangeLog version 0.12.2.3
HTF.cabal bump version to 0.12.2.4
HTFPP.hs added --version to the --help output
LICENSE initial version
README.md last preparations before release 0.9.0.0
TODO.org support for timeouts and test run history
check-dist.sh pimped some scripts for testing
run-all-tests-for-all-compilers.sh re-organized and improved tests
run-all-tests.sh fixed various issues with tests
setup.hs Major rewrite

README.md

HTF - The Haskell Test Framework

Summary

The Haskell Test Framework (HTF for short) lets you define unit tests (http://hunit.sourceforge.net), QuickCheck properties (http://www.cs.chalmers.se/~rjmh/QuickCheck/), 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 http://hackage.haskell.org/ using cabal install HTF
  • Install from source:

    $ git clone git@github.com:skogsbaer/HTF.git
    $ 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.