on master help sign in
wai-extra: Consolidate test suite
commitdae03aabeb75c72875c432df45869ee1f496eca6 authorSimon Hengel <sol@typeful.net> dateSat 1 Nov 2014, 21:16 (12 years ago) parent2f7a7fb
3 files changed+12−32
wai-extra/test/WaiExtraTest.hs → wai-extra/test/WaiExtraSpec.hs+3−3 wai-extra/tests.hs−5 wai-extra/wai-extra.cabal+9−24
wai-extra/test/WaiExtraTest.hs → wai-extra/test/WaiExtraSpec.hsrenamed+3−3
@@ -1,5 +1,5 @@
11{-# LANGUAGE OverloadedStrings #-}
2−module WaiExtraTest (specs) where
2+module WaiExtraSpec where
33
44import Test.Hspec
55import Test.HUnit hiding (Test)
@@ -38,8 +38,8 @@ import System.IO (withFile, IOMode (ReadMode))
3838
3939import qualified Data.IORef as I
4040
41−specs :: Spec
42−specs = do
41+spec :: Spec
42+spec = do
4343 describe "Network.Wai.UrlMap" $ do
4444 mapM_ (uncurry it) casesUrlMap
4545
wai-extra/tests.hsdeleted−5
@@ -1,5 +0,0 @@
1−import Test.Hspec
2−import qualified WaiExtraTest
3−
4−main :: IO ()
5−main = hspec WaiExtraTest.specs
wai-extra/wai-extra.cabal+9−24
@@ -73,39 +73,24 @@ Library
7373 other-modules: Network.Wai.Middleware.RequestLogger.Internal
7474 ghc-options: -Wall
7575
76−
77−test-suite tests
78− hs-source-dirs: test
79− main-is: ../tests.hs
80− type: exitcode-stdio-1.0
81−
82− build-depends: base >= 4 && < 5
83− , wai-extra
84− , hspec >= 1.3
85− , HUnit
86−
87− , wai
88− , http-types
89− , transformers
90− , zlib
91− , text
92− , bytestring
93− , directory
94− , blaze-builder >= 0.2.1.4 && < 0.4
95− , data-default
96− , fast-logger >= 2.1
97− , resourcet
98− ghc-options: -Wall
99−
10076test-suite spec
10177 type: exitcode-stdio-1.0
10278 hs-source-dirs: test
10379 main-is: Spec.hs
10480 other-modules: Network.Wai.TestSpec
81+ WaiExtraSpec
10582 build-depends: base >= 4 && < 5
10683 , wai-extra
10784 , wai
10885 , hspec >= 1.3
86+ , transformers
87+ , fast-logger
88+ , http-types
89+ , zlib
90+ , text
91+ , resourcet
92+ , bytestring
93+ , HUnit
10994 ghc-options: -Wall -Werror
11095
11196source-repository head