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

Versions1.0, 1.1
Change logNone available
Dependenciesbase (<5), 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
UploadedSat Oct 17 18:43:16 UTC 2015 by JanStolarek
DistributionsNixOS:1.1
Downloads517 total (2 in last 30 days)
Votes
0 []
StatusDocs available [build log]
Last success reported on 2015-10-17 [all 1 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

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)