A JUnit-style unit testing framework for Haskell
open sourceBSD-3-Clausefree
HUnit is a unit testing framework for Haskell, adapted from Java's JUnit. You write test cases with assertions such as assertEqual and assertBool, name them with TestLabel, group them into suites with TestList, and run them with runTestTT, which prints how many cases were tried and how many errors and failures there were; the framework checks results automatically. It comes with a text-based test controller and is designed to be extended.
Problems it solves
- write unit tests for my Haskell code
- group Haskell test cases into suites and run them from GHCi
- a simple JUnit-like test framework for Haskell
Features
- assertEqual, assertBool and other assertions
- named test cases grouped into suites
- runTestTT text runner with counts of errors and failures
Limitations
- Includes only a text-based test controller1
Alternatives
The same job
These do what HUnit does.
