IMPORTANT: This repository is now hosted on BitBucket.
This package provides a function that converts exisiting HUnit tests to TestTree that can be used by tasty testing framework. Code is adapted from test-framework-hunit package authored by Max Bolingbroke.
You can download latest stable release from Hackage
module Main where import Test.HUnit ( (~:), (@=?) ) import Test.Tasty ( defaultMain, testGroup ) import Test.Tasty.HUnit.Adapter ( hUnitTestToTestTree ) main :: IO () main = defaultMain $ testGroup "Migrated from HUnit" $ hUnitTestToTestTree ("HUnit test" ~: 2 + 2 @=? 4)