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

Version1.0
Change logNone available
Dependenciesbase (<4.8), HUnit, tasty, tasty-hunit [details]
LicenseBSD3
AuthorJan Stolarek
Maintainerjan.stolarek@p.lodz.pl
Stabilitystable
CategoryTesting
Home pagehttps://github.com/jstolarek/tasty-hunit-adapter
Bug trackerhttps://github.com/jstolarek/tasty-hunit-adapter/issues
Source repositoryhead: git clone git://github.com/jstolarek/tasty-hunit-adapter.git
UploadedWed Jan 29 21:41:17 UTC 2014 by JanStolarek
DistributionsNixOS:1.0
Downloads239 total (25 in last 30 days)
Votes
0 []
StatusDocs available [build log]
Successful builds reported [all 1 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for tasty-hunit-adapter-1.0

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.

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)