LGPL-2.1-only licensed and maintained by Stefan Wehr
This version can be pinned in stack with:HTF-0.15.0.2@sha256:c8c9859c2c9944e14ad415c972baa838be578580ac7ef47a752ff882f60d7e42,6771

Module documentation for 0.15.0.2

  • 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.