The tasty-hunit-adapter package

[Tags:bsd3, library]

This package provides a function that converts exisiting HUnit tests to a TestTree that can be used with tasty testing framework. Code is adapted from test-framework-hunit package authored by Max Bolingbroke.


[Skip to Readme]

Properties

Versions 1.0, 1.1
Dependencies base (<5), HUnit, tasty, tasty-hunit [details]
License BSD3
Author Jan Stolarek
Maintainer jan.stolarek@p.lodz.pl
Stability stable
Category Testing
Home page https://github.com/jstolarek/tasty-hunit-adapter
Bug tracker https://github.com/jstolarek/tasty-hunit-adapter/issues
Source repository head: git clone git://github.com/jstolarek/tasty-hunit-adapter.git
Uploaded Sat Oct 17 18:43:16 UTC 2015 by JanStolarek
Distributions NixOS:1.1
Downloads 540 total (5 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2015-10-17 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for tasty-hunit-adapter

Readme for tasty-hunit-adapter-1.1

tasty-hunit-adapter

This package provides a function that converts exisiting [HUnit] (http://hackage.haskell.org/package/HUnit) tests to TestTree that can be used by tasty testing framework. Code is adapted from [test-framework-hunit] (http://hackage.haskell.org/package/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)