test-framework-hunit 0.2.7 → 0.3.0.3
raw patch · 4 files changed
Files
- ChangeLog.md +7/−0
- Setup.lhs +0/−4
- Test/Framework/Providers/HUnit.hs +5/−5
- test-framework-hunit.cabal +37/−21
+ ChangeLog.md view
@@ -0,0 +1,7 @@+## 0.3.0.3++_2026-01-05, Andreas Abel_++- Drop support for GHC 7+- Remove obsolete `deriving Typeable`+- Tested building with GHC 8.0 - 9.14.1
− Setup.lhs
@@ -1,4 +0,0 @@-#! /usr/bin/env runhaskell--> import Distribution.Simple-> main = defaultMain
Test/Framework/Providers/HUnit.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE CPP #-}+ -- | Allows HUnit test cases to be used with the test-framework package. -- -- For an example of how to use test-framework, please see <http://github.com/batterseapower/test-framework/raw/master/example/Test/Framework/Example.lhs>@@ -11,7 +13,6 @@ import qualified Test.HUnit.Base import Test.HUnit.Lang - -- | Create a 'Test' for a HUnit 'Assertion' testCase :: TestName -> Assertion -> Test testCase name = Test name . TestCase@@ -54,7 +55,6 @@ testCaseSucceeded TestCasePassed = True testCaseSucceeded _ = False - newtype TestCase = TestCase Assertion instance Testlike TestCaseRunning TestCaseResult TestCase where@@ -71,6 +71,6 @@ myPerformTestCase assertion = do result <- performTestCase assertion return $ case result of- Nothing -> TestCasePassed- Just (True, message) -> TestCaseFailed message- Just (False, message) -> TestCaseError message+ Success -> TestCasePassed+ Failure _loc message -> TestCaseFailed message+ Error _loc message -> TestCaseError message
test-framework-hunit.cabal view
@@ -1,35 +1,51 @@+Cabal-Version: 1.18 Name: test-framework-hunit-Version: 0.2.7-Cabal-Version: >= 1.2.3+Version: 0.3.0.3 Category: Testing Synopsis: HUnit support for the test-framework package. License: BSD3 License-File: LICENSE Author: Max Bolingbroke <batterseapower@hotmail.com>-Maintainer: Max Bolingbroke <batterseapower@hotmail.com>-Homepage: http://batterseapower.github.com/test-framework/+Maintainer: Andreas Abel+Homepage: https://github.com/haskell/test-framework#readme+Bug-Reports: https://github.com/haskell/test-framework/issues Build-Type: Simple--Flag Base4- Description: Choose base version 4- Default: True+Description: @HUnit@ support for the @test-framework@ package. -Flag Base3- Description: Choose base version 3- Default: False+extra-doc-files:+ ChangeLog.md +Tested-With:+ GHC == 9.14.1+ GHC == 9.12.2+ GHC == 9.10.3+ GHC == 9.8.4+ GHC == 9.6.7+ GHC == 9.4.8+ GHC == 9.2.8+ GHC == 9.0.2+ GHC == 8.10.7+ GHC == 8.8.4+ GHC == 8.6.5+ GHC == 8.4.4+ GHC == 8.2.2+ GHC == 8.0.2 Library- Exposed-Modules: Test.Framework.Providers.HUnit+ Default-Language: Haskell2010+ Default-Extensions: TypeOperators+ MultiParamTypeClasses - Build-Depends: test-framework >= 0.2.0, HUnit >= 1.2 && < 2, extensible-exceptions >= 0.1.1 && < 0.2.0- if flag(base3)- Build-Depends: base >= 3 && < 4- else- if flag(base4)- Build-Depends: base >= 4 && < 5+ Exposed-Modules: Test.Framework.Providers.HUnit - Extensions: TypeOperators- MultiParamTypeClasses+ Build-Depends: test-framework == 0.8.*+ , base >= 4.9 && < 5+ , HUnit >= 1.5.0.0 && < 1.7 - Ghc-Options: -Wall+ Ghc-Options: -Wno-deprecations+ -- This package is legacy and won't address deprecation warnings.++Source-Repository head+ Type: git+ Location: https://github.com/haskell/test-framework.git+ subdir: hunit