Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

doctest v0.6 #8

Merged
merged 1 commit into from

3 participants

Kazu Yamamoto Simon Hengel Sakari Jokinen
Kazu Yamamoto

This patch is to use doctest v0.6.

In my environment, this patch works well. But this is just a sample implementation. Please review this carefully.

What I want is to use doctest v0.6. So, it's nice even if you support doctest v0.6 by yourself and reject this patch.

Simon Hengel

@kazu-yamamoto it is important to restrict the version of doctest to < 0.7.

The next version of Doctest will print source locations on failing tests. This is an awesome feature (IMO), but it will sadly break the API again.

Sakari Jokinen sakari merged commit 985c833 into from
Sakari Jokinen
Owner

@sol thanks for the heads up. @kazu-yamamoto your change seemed ok, I did a bit of tuning on top of that and will upload this to hackage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 26, 2012
  1. Kazu Yamamoto

    Using doctest v0.6.

    kazu-yamamoto authored
This page is out of date. Refresh to see the latest.
2  src/Test/Framework/Providers/DocTest.hs
View
@@ -58,7 +58,7 @@ docTest::[FilePath] -- ^ Paths to root modules
-> [String] -- ^ Options passed to ghci
-> IO Test
docTest rootPaths options = do
- tests <- DocTest.getDocTests ([Flag_Verbosity "0", Flag_NoWarnings] ++ map Flag_OptGhc options) rootPaths
+ tests <- DocTest.getDocTests options rootPaths
return $ toTestFrameworkGroup (rootPaths ++ options) tests
toTestFrameworkTest :: [String] -> DocTest.DocTest -> Test
4 test-framework-doctest.cabal
View
@@ -32,7 +32,7 @@ test-suite doctest
base >= 4 && < 5,
test-framework >= 0.4,
test-framework-hunit >= 0.2,
- doctest >= 0.4.0 && < 0.6,
+ doctest >= 0.6,
haddock
Library
@@ -41,7 +41,7 @@ Library
Exposed-modules: Test.Framework.Providers.DocTest
Build-depends:
base >= 4 && < 5,
- doctest >= 0.4.0 && < 0.6,
+ doctest >= 0.6,
test-framework >= 0.4,
test-framework-hunit >= 0.2,
haddock
Something went wrong with that request. Please try again.