From 8a8c067df32ef0eb6940e58d3820edc4f9a4e86a Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Mon, 11 Dec 2017 18:41:27 +0200 Subject: [PATCH] Remove unused test suite --- stackage-server.cabal | 52 ------------------------------------------- test/Spec.hs | 1 - test/TestImport.hs | 21 ----------------- 3 files changed, 74 deletions(-) delete mode 100644 test/Spec.hs delete mode 100644 test/TestImport.hs diff --git a/stackage-server.cabal b/stackage-server.cabal index 6ab0848..6772b3a 100644 --- a/stackage-server.cabal +++ b/stackage-server.cabal @@ -267,55 +267,3 @@ executable stackage-server-cron DeriveFoldable DeriveTraversable LambdaCase - -test-suite test - type: exitcode-stdio-1.0 - main-is: Spec.hs - other-modules: TestImport - hs-source-dirs: test - ghc-options: -Wall - - build-depends: base - , stackage-server - , yesod-test - , yesod-core - , yesod - , persistent - , resourcet - , monad-logger - , transformers - , hspec - , classy-prelude-yesod - , mtl - , mwc-random - - extensions: TemplateHaskell - QuasiQuotes - OverloadedStrings - NoImplicitPrelude - CPP - MultiParamTypeClasses - TypeFamilies - GADTs - GeneralizedNewtypeDeriving - FlexibleContexts - EmptyDataDecls - NoMonomorphismRestriction - DeriveDataTypeable - ViewPatterns - TypeSynonymInstances - FlexibleInstances - RankNTypes - FunctionalDependencies - PatternGuards - StandaloneDeriving - UndecidableInstances - RecordWildCards - ScopedTypeVariables - BangPatterns - TupleSections - DeriveGeneric - DeriveFunctor - DeriveFoldable - DeriveTraversable - LambdaCase diff --git a/test/Spec.hs b/test/Spec.hs deleted file mode 100644 index a824f8c..0000000 --- a/test/Spec.hs +++ /dev/null @@ -1 +0,0 @@ -{-# OPTIONS_GHC -F -pgmF hspec-discover #-} diff --git a/test/TestImport.hs b/test/TestImport.hs deleted file mode 100644 index 88e0618..0000000 --- a/test/TestImport.hs +++ /dev/null @@ -1,21 +0,0 @@ -module TestImport - ( module TestImport - , module X - ) where - -import Application (makeFoundation, makeLogWare) -import ClassyPrelude as X -import Foundation as X -import Test.Hspec as X -import Yesod.Default.Config2 (ignoreEnv, loadYamlSettings) -import Yesod.Test as X - -withApp :: SpecWith (TestApp App) -> Spec -withApp = before $ do - settings <- loadYamlSettings - ["config/test-settings.yml", "config/settings.yml"] - [] - ignoreEnv - foundation <- makeFoundation settings - logWare <- liftIO $ makeLogWare foundation - return (foundation, logWare)