Permalink
Browse files

Use hspec-discover for test suite

  • Loading branch information...
1 parent f3c9da8 commit 81ee687aa72e0540c72eb5099d5fa803b1dfa7aa @sol sol committed May 15, 2012
Showing with 3 additions and 26 deletions.
  1. +1 −1 .travis.yml
  2. +1 −0 doctest.cabal
  3. +1 −25 test/Spec.hs
View
@@ -2,5 +2,5 @@ language: haskell
install:
- cabal update
- - cabal install hspec-shouldbe stringbuilder silently
+ - cabal install hspec-shouldbe hspec-discover stringbuilder silently
- cabal install
View
@@ -84,6 +84,7 @@ test-suite spec
, ghc-paths == 0.1.*
, transformers
, HUnit == 1.2.*
+ , hspec-discover
, hspec-shouldbe
, stringbuilder
, silently
View
@@ -1,25 +1 @@
-module Main (main) where
-
-import Test.Hspec.ShouldBe
-
-import qualified UtilSpec
-import qualified LocationSpec
-import qualified ExtractSpec
-import qualified ParseSpec
-import qualified InterpreterSpec
-import qualified ReportSpec
-import qualified PropertySpec
-import qualified RunSpec
-import qualified MainSpec
-
-main :: IO ()
-main = hspecX $ do
- describe "UtilSpec" UtilSpec.spec
- describe "LocationSpec" LocationSpec.spec
- describe "ExtractSpec" ExtractSpec.spec
- describe "ParseSpec" ParseSpec.spec
- describe "InterpreterSpec" InterpreterSpec.spec
- describe "ReportSpec" ReportSpec.spec
- describe "PropertySpec" PropertySpec.spec
- describe "RunSpec" RunSpec.spec
- describe "MainSpec" MainSpec.spec
+{-# OPTIONS_GHC -F -pgmF hspec-discover #-}

0 comments on commit 81ee687

Please sign in to comment.