A modern, extensible testing framework for Haskell
open sourceMITfree
Tasty is a testing framework for Haskell that combines unit tests, golden tests, QuickCheck and SmallCheck properties and other kinds of tests into one test suite. The core tasty package has the basic APIs and a console runner, and providers add each kind of test: tasty-hunit for HUnit unit tests, tasty-quickcheck for QuickCheck properties, tasty-golden, tasty-smallcheck, tasty-hedgehog, tasty-hspec and more. It runs tests in parallel while reporting in a deterministic order, filters tests by patterns on the command line, and can share resources such as sockets or temporary files between tests.
Problems it solves
- combine unit tests and property tests into one Haskell test suite
- run a Haskell test suite in parallel and filter which tests run
- write golden tests for a Haskell program
Features
- Runs tests in parallel but reports results in a deterministic order
- Filters tests with patterns given on the command line
- Hierarchical, coloured display of results with statistics
- Resources such as sockets and temporary files shared between tests
- Providers for HUnit, QuickCheck, SmallCheck, Hedgehog, golden tests and Hspec
- Extensible with your own test providers and runners
Limitations
- Supports only GHC and base versions from the last 5 years1
Alternatives
The same job
These do what tasty does.
