aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Hengel <sol@typeful.net>2012-10-14 01:51:32 +0200
committerSimon Hengel <sol@typeful.net>2012-10-14 01:51:32 +0200
commit6fafde62449fa8a5cb8405d6270caa5e1ddac613 (patch)
tree195cd40192b2f6db7213989d39165b355e2c4c85
parent3ba97f8470f401c968a2ea6f5fd1e7cae1c69028 (diff)
Organize unite tests hierarchically
-rw-r--r--haddock.cabal2
-rw-r--r--tests/unit-tests/Haddock/ParseSpec.hs (renamed from tests/unit-tests/parsetests.hs)2
-rw-r--r--tests/unit-tests/Spec.hs9
3 files changed, 11 insertions, 2 deletions
diff --git a/haddock.cabal b/haddock.cabal
index c0d77a10..b77fc5ac 100644
--- a/haddock.cabal
+++ b/haddock.cabal
@@ -179,7 +179,7 @@ test-suite html-tests
test-suite spec
type: exitcode-stdio-1.0
default-language: Haskell2010
- main-is: parsetests.hs
+ main-is: Spec.hs
hs-source-dirs:
tests/unit-tests
, tests/nanospec
diff --git a/tests/unit-tests/parsetests.hs b/tests/unit-tests/Haddock/ParseSpec.hs
index 1f923aa0..0c959982 100644
--- a/tests/unit-tests/parsetests.hs
+++ b/tests/unit-tests/Haddock/ParseSpec.hs
@@ -1,6 +1,6 @@
{-# LANGUAGE StandaloneDeriving, FlexibleInstances, UndecidableInstances, IncoherentInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-module Main (main, spec) where
+module Haddock.ParseSpec (main, spec) where
import Test.Hspec
import RdrName (RdrName)
diff --git a/tests/unit-tests/Spec.hs b/tests/unit-tests/Spec.hs
new file mode 100644
index 00000000..68521c03
--- /dev/null
+++ b/tests/unit-tests/Spec.hs
@@ -0,0 +1,9 @@
+module Main where
+
+import Test.Hspec
+
+import qualified Haddock.ParseSpec
+
+main :: IO ()
+main = hspec $ do
+ describe "Haddock.Parse" Haddock.ParseSpec.spec