diff options
-rw-r--r-- | haddock.cabal | 2 | ||||
-rw-r--r-- | tests/unit-tests/Haddock/ParseSpec.hs (renamed from tests/unit-tests/parsetests.hs) | 2 | ||||
-rw-r--r-- | tests/unit-tests/Spec.hs | 9 |
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 |