This repository has been archived by the owner. It is now read-only.
Import existing HUnit tests into tasty
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/Test/Tasty/HUnit
.gitignore
CHANGELOG.md
LICENSE
README.md
Setup.hs
tasty-hunit-adapter.cabal

README.md

tasty-hunit-adapter

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

Example

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)