Skip to content

Commit

Permalink
Merge branch 'hspec-discover'
Browse files Browse the repository at this point in the history
  • Loading branch information
koterpillar committed Jan 28, 2017
2 parents 60f3a19 + 29dc900 commit 44dd535
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 37 deletions.
2 changes: 1 addition & 1 deletion test/TestFetcherArpansa.hs → test/Fetcher/ArpansaSpec.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module TestFetcherArpansa where
module Fetcher.ArpansaSpec where

import Control.Lens

Expand Down
2 changes: 1 addition & 1 deletion test/TestFetcherJMA.hs → test/Fetcher/JMASpec.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module TestFetcherJMA where
module Fetcher.JMASpec where

import Control.Lens

Expand Down
2 changes: 1 addition & 1 deletion test/TestFetcher.hs → test/FetcherSpec.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module TestFetcher where
module FetcherSpec where

import Control.Lens

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Integration.TestServer where
module Integration.ServerSpec where

import Control.Lens

Expand Down
23 changes: 1 addition & 22 deletions test/Spec.hs
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
-- FIXME: Why doesn't hspec-discover work?
import Test.Hspec

import qualified TestFetcher
import qualified TestFetcherArpansa
import qualified TestFetcherJMA
import qualified TestTypes
import qualified TestTypesLocation
import qualified TestUtils
import qualified Integration.TestServer

main :: IO ()
main = hspec spec

spec = do
describe "TestFetcher" TestFetcher.spec
describe "TestFetcherArpansa" TestFetcherArpansa.spec
describe "TestFetcherJMA" TestFetcherJMA.spec
describe "TestTypes" TestTypes.spec
describe "TestTypesLocation" TestTypesLocation.spec
describe "TestUtils" TestUtils.spec
describe "Integration.TestServer" Integration.TestServer.spec
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}
2 changes: 1 addition & 1 deletion test/TestTypesLocation.hs → test/Types/LocationSpec.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE OverloadedStrings #-}
module TestTypesLocation where
module Types.LocationSpec where

{- Test Types.Location module -}

Expand Down
2 changes: 1 addition & 1 deletion test/TestTypes.hs → test/TypesSpec.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE OverloadedStrings #-}
module TestTypes where
module TypesSpec where

{- Test Types module -}

Expand Down
2 changes: 1 addition & 1 deletion test/TestUtils.hs → test/UtilsSpec.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE OverloadedStrings #-}
module TestUtils where
module UtilsSpec where

{- Test Utils module -}

Expand Down
16 changes: 8 additions & 8 deletions uv-alert-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ test-suite uv-alert-server-test
, transformers
, vector
, wai
other-modules: Images
other-modules: Fetcher.ArpansaSpec
, Fetcher.JMASpec
, FetcherSpec
, Images
, Integration.Base
, Integration.TestServer
, Integration.ServerSpec
, Misc
, TestFetcher
, TestFetcherArpansa
, TestFetcherJMA
, TestTypes
, TestTypesLocation
, TestUtils
, Types.LocationSpec
, TypesSpec
, UtilsSpec
ghc-options: -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010

Expand Down

0 comments on commit 44dd535

Please sign in to comment.