Permalink
Browse files

match doctest 0.6

  • Loading branch information...
sakari committed Mar 26, 2012
1 parent 985c833 commit 051efa9e9853f9e8a3029caee52fa3223541599c
Showing with 10 additions and 17 deletions.
  1. +1 −6 src/Test/Framework/Providers/DocTest.hs
  2. +9 −11 test-framework-doctest.cabal
@@ -14,7 +14,7 @@ After getting the doctests we can execute the doctests using the
>>> :m + Data.Monoid
>>> defaultMainWithOpts [doctests] noColors
DocTest:
- tests/Test.hs:
+ Test:
print "abc": [Failed]
expression `print "abc"'
expected: ["\"fail\""]
@@ -34,7 +34,6 @@ The @*** Exception: ExitFailure 1@ is caused by
module Test.Framework.Providers.DocTest (docTest) where
-import Documentation.Haddock
import qualified Test.DocTest as DocTest
import Test.Framework
import Test.Framework.Providers.HUnit
@@ -43,11 +42,7 @@ import Data.Monoid
noColors :: RunnerOptions
noColors = mempty {
-#if MIN_VERSION_test_framework(0,5,0)
ropt_color_mode = Nothing
-#else
- ropt_plain_output = Just True
-#endif
}
-- | Note that 'docTest' can be called only once per process execution
@@ -1,5 +1,5 @@
Name: test-framework-doctest
-Version: 0.2.0.1
+Version: 0.2.1
Synopsis: Test.Framework wrapper for DocTest
Description: Test.Framework wrapper for DocTest
License: BSD3
@@ -21,27 +21,25 @@ Source-repository head
Source-repository this
type: git
location: git://github.com/sakari/test-framework-doctest.git
- tag: 0.2.0.1
+ tag: 0.2.1
test-suite doctest
main-is: Main.hs
default-language: Haskell98
type: exitcode-stdio-1.0
- hs-source-dirs: src, tests
+ hs-source-dirs: tests
build-depends:
base >= 4 && < 5,
- test-framework >= 0.4,
- test-framework-hunit >= 0.2,
- doctest >= 0.6,
- haddock
+ test-framework >= 0.6,
+ test-framework-doctest >= 0.2.1
Library
Hs-source-dirs: src
default-language: Haskell98
Exposed-modules: Test.Framework.Providers.DocTest
Build-depends:
base >= 4 && < 5,
- doctest >= 0.6,
- test-framework >= 0.4,
- test-framework-hunit >= 0.2,
- haddock
+ doctest >= 0.6 && < 0.7,
+ test-framework >= 0.6,
+ test-framework-hunit >= 0.2
+

0 comments on commit 051efa9

Please sign in to comment.