Skip to content

Commit

Permalink
prop tests first, case tests second.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Dec 19, 2011
1 parent 9137a74 commit 95712f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Test/Framework/TH.hs
Expand Up @@ -14,6 +14,7 @@

module Test.Framework.TH (
defaultMainGenerator,
defaultMainGenerator2,
testGroupGenerator
) where
import Language.Haskell.TH
Expand Down Expand Up @@ -61,6 +62,10 @@ defaultMainGenerator :: ExpQ
defaultMainGenerator =
[| defaultMain [ testGroup $(locationModule) $ $(propListGenerator) ++ $(caseListGenerator) ] |]

defaultMainGenerator2 :: ExpQ
defaultMainGenerator2 =
[| defaultMain [ testGroup $(locationModule) $ $(caseListGenerator) ++ $(propListGenerator) ] |]

-- | Generate the usual code and extract the usual functions needed for a testGroup in HUnit/Quickcheck/Quickcheck2.
-- All functions beginning with case_ or prop_ will be extracted.
--
Expand Down

0 comments on commit 95712f2

Please sign in to comment.