Skip to content

Commit

Permalink
Use hspec-discover for test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed May 15, 2012
1 parent f3c9da8 commit 81ee687
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions doctest.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ test-suite spec
, ghc-paths == 0.1.*
, transformers
, HUnit == 1.2.*
, hspec-discover
, hspec-shouldbe
, stringbuilder
, silently
Expand Down
26 changes: 1 addition & 25 deletions test/Spec.hs
Original file line number Diff line number Diff line change
@@ -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.