summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Main.hs3
-rw-r--r--tests/Spec.hs2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/Main.hs b/tests/Main.hs
index 6577e6f4..75321ec7 100644
--- a/tests/Main.hs
+++ b/tests/Main.hs
@@ -10,6 +10,7 @@ import System.Environment
10import System.Process 10import System.Process
11import System.Directory 11import System.Directory
12import Text.Printf 12import Text.Printf
13import Test.Hspec
13 14
14import Config 15import Config
15import Spec 16import Spec
@@ -64,7 +65,7 @@ terminateEnv = do
64runTestSuite :: [String] -> IO ExitCode 65runTestSuite :: [String] -> IO ExitCode
65runTestSuite args = do 66runTestSuite args = do
66 printf "running hspec test suite with args: %s\n" (show args) 67 printf "running hspec test suite with args: %s\n" (show args)
67 catch (withArgs args hspecMain >> return ExitSuccess) return 68 catch (withArgs args (hspec spec) >> return ExitSuccess) return
68 69
69main :: IO () 70main :: IO ()
70main = do 71main = do
diff --git a/tests/Spec.hs b/tests/Spec.hs
index 8d2b5139..b4e92e75 100644
--- a/tests/Spec.hs
+++ b/tests/Spec.hs
@@ -1 +1 @@
{-# OPTIONS_GHC -F -pgmF hspec-discover -optF --hook-main #-} {-# OPTIONS_GHC -F -pgmF hspec-discover -optF --no-main #-}