LGPL-2.1-only licensed and maintained by Stefan Wehr
This version can be pinned in stack with:HTF-0.15.0.1@sha256:e76765caf2a4afda95e1d0e6297cf0215d7ec3e8020fbaf10e581be2be2a14da,6882

Module documentation for 0.15.0.1

  • Test
    • Test.Framework
      • Test.Framework.AssertM
      • Test.Framework.BlackBoxTest
      • Test.Framework.HUnitWrapper
      • Test.Framework.History
      • Test.Framework.JsonOutput
      • Test.Framework.Location
      • Test.Framework.Preprocessor
      • Test.Framework.Pretty
      • Test.Framework.PrettyHaskell
      • Test.Framework.QuickCheckWrapper
      • Test.Framework.TestInterface
      • Test.Framework.TestManager
      • Test.Framework.TestTypes
      • Test.Framework.ThreadPool
      • Test.Framework.Tutorial
      • Test.Framework.XmlOutput

HTF - The Haskell Test Framework

Build Status Hackage

Summary

The Haskell Test Framework (HTF for short) lets you define and organize unit tests (http://hackage.haskell.org/package/HUnit), QuickCheck properties (https://hackage.haskell.org/package/QuickCheck), and black box tests in an easy and convenient way. HTF uses a custom preprocessor that collects test definitions automatically.

HTF produces highly readable output for failing test cases: it provides exact file name and line number information, it colors and pretty prints expected and actual results, and it displays a diff highlighting the mismatching parts.

Getting started

  • Read the tutorial.
  • Experiment with the sample project located in the sample directory of HTF’s source tree.