HTF: The Haskell Test Framework

[ lgpl, library, program, testing ] [ Propose Tags ] [ Report a vulnerability ]

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. The HTF uses a custom preprocessor that collects test definitions automatically. Furthermore, the preprocessor allows the HTF to report failing test cases with exact file name and line number information.

The documentation of the Test.Framework.Tutorial module provides a tutorial for the HTF.


[Skip to Readme]

Modules

[Last Documentation]

  • Test
    • Test.Framework
      • Test.Framework.BlackBoxTest
      • Test.Framework.HUnitWrapper
      • Test.Framework.Location
      • Test.Framework.Pretty
      • Test.Framework.QuickCheckWrapper
      • Test.Framework.TestConfig
      • Test.Framework.TestManager
      • Test.Framework.Tutorial

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.3, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5.0, 0.4.0.0, 0.5.0.0, 0.5.0.1, 0.6.0.0, 0.6.0.1, 0.7.0.0, 0.7.0.1, 0.7.1.0, 0.8.0.0, 0.8.1.0, 0.8.1.1, 0.8.2.0, 0.8.2.1, 0.8.2.2, 0.9.0.0, 0.10.0.0, 0.10.0.1, 0.10.0.2, 0.10.0.3, 0.10.0.4, 0.10.0.5, 0.10.0.6, 0.10.0.7, 0.11.0.0, 0.11.0.1, 0.11.1.0, 0.11.1.1, 0.11.2, 0.11.2.1, 0.11.3.0, 0.11.3.1, 0.11.3.2, 0.11.3.4, 0.11.4.0, 0.12.0.0, 0.12.1.0, 0.12.2.0, 0.12.2.1, 0.12.2.2, 0.12.2.3, 0.12.2.4, 0.13.0.0, 0.13.1.0, 0.13.2.1, 0.13.2.2, 0.13.2.4, 0.13.2.5, 0.14.0.0, 0.14.0.1, 0.14.0.2, 0.14.0.3, 0.14.0.4, 0.14.0.5, 0.14.0.6, 0.14.0.7, 0.15.0.0, 0.15.0.1, 0.15.0.2
Change log ChangeLog
Dependencies base (>=4 && <5), bytestring (>=0.9 && <0.10), containers (>=0.3 && <0.5), cpphs (>=1.11 && <1.12), Diff (>=0.1.3 && <0.2), directory (>=1.0 && <1.2), haskell-src-exts (>=1.8.2 && <1.10), HUnit (>=1.2 && <1.3), mtl (>=1.1 && <2.1), pretty (>=1.0 && <1.1), process (>=1.0 && <1.1), QuickCheck (>=2.3 && <2.4), random (>=1.0 && <1.1), regex-compat (>=0.93 && <0.94), unix (>=2.4 && <2.5) [details]
Tested with ghc ==6.10.4, ghc ==6.12, ghc ==7.0
License LicenseRef-LGPL
Copyright (c) 2005-2011 Stefan Wehr
Author Stefan Wehr <mail@stefanwehr.de>
Maintainer Stefan Wehr <mail@stefanwehr.de>
Revised Revision 1 made by Bodigrim at 2021-11-29T22:52:45Z
Category Testing
Bug tracker mailto:mail@stefanwehr.de
Source repo head: darcs get http://www.stefanwehr.de/darcs/HTF
Uploaded by StefanWehr at 2011-09-20T10:13:48Z
Distributions Arch:0.15.0.1, LTSHaskell:0.15.0.2, NixOS:0.15.0.2, Stackage:0.15.0.2
Reverse Dependencies 7 direct, 7 indirect [details]
Executables htfpp
Downloads 68702 total (266 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-27 [all 7 reports]

Readme for HTF-0.8.0.0

[back to package description]
                    HTF - The Haskell Test Framework
                  ====================================

Author:  Stefan Wehr <mail AT stefanwehr DOT de>
License: LGPL

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. The HTF uses a custom preprocessor that collects
test definitions automatically. Furthermore, the preprocessor allows the
HTF to report failing test cases with exact file name and line number
information.

The documentation of the Test.Framework.Tutorial module provides a
tutorial for the HTF.

NOTE: If you use black box tests, you have to compile your program
with the `-threaded' option. Otherwise, your program just blocks
indefinitely!


Requirements:
-------------

- GHC (tested with 6.10.4 and 6.12.3)
- Some haskell libraries, see HTF.cabal


Installation instructions:
--------------------------

Execute the command `cabal install' inside the HTF root directory.