Module documentation for 0.10.1
HUnit support for the Tasty test framework.
Note that this package does not depend on HUnit but implements the relevant subset of its API. The name is a legacy of the early versions of tasty-hunit and of test-framework-hunit, which did depend on HUnit.
- Provide an explicit implementation of
instance Exception HUnitFailure(#330).
The only point of this release is to introduce compatibility with GHCs back to 7.0 (see https://github.com/UnkindPartition/tasty/pull/287).
Note, however, that these changes are not merged to the master branch, and the future releases will only support the GHC/base versions from the last 5 years, as per our usual policy. To test with even older GHCs, you’ll have to use this particular version of tasty-hunit (or have the constraint solver pick it for you when testing with older GHCs).
The source of this release is in the
support-old-ghcs branch of the tasty
Catch all exceptions and time each step in testCaseSteps
AssertionPredicable and improve their docs
assertFailure’s return type polymorphic
- When a test fails, print the source location of the failing assertion
testCaseInfo for tests that return some information upon success
testCaseSteps for multi-step tests
Split the changelog out of the main tasty changelog
tasty-hunit now does not depend on the original HUnit package. The functions that were previously re-exported from HUnit have been simply copied to tasty-hunit.
This is motivated by:
- efficiency (one less package to compile/install)
- reliability (if something happens with HUnit, we won’t be affected)
The two packages are still compatible, except for the name clashes and distinct exception types being thrown on assertion failures.
Fix unbuildable haddock
- Exceptions are now handled by tasty rather than by HUnit
- Update to tasty-0.8
Do not re-export HUnit’s
Re-export useful bits of