tasty-hunit-adapter: Use existing HUnit tests with tasty

[ bsd3, library, testing ] [ Propose Tags ] [ Report a vulnerability ]

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]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0, 1.1
Dependencies base (<4.8), HUnit, tasty, tasty-hunit [details]
Tested with ghc >=7.6.3
License BSD-3-Clause
Author Jan Stolarek
Maintainer jan.stolarek@p.lodz.pl
Category Testing
Home page https://github.com/jstolarek/tasty-hunit-adapter
Bug tracker https://github.com/jstolarek/tasty-hunit-adapter/issues
Source repo head: git clone git://github.com/jstolarek/tasty-hunit-adapter.git
Uploaded by JanStolarek at 2014-01-29T21:41:17Z
Distributions NixOS:1.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1946 total (19 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Successful builds reported [all 1 reports]

Readme for tasty-hunit-adapter-1.0

[back to package description]

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)