From 8cf4acf2fc4dc07b77ce8f9818908b79174f3b27 Mon Sep 17 00:00:00 2001 From: Arian van Putten Date: Mon, 5 Oct 2015 00:51:32 +0200 Subject: [PATCH] Fix servant-client tests to properly use hspec-discover. For some reason hspec-discover wasn't enabled for servant-client, causing test cases to be skipped and fasely reporting servant-client as test-passing whilst it was actually supposed to fail the tests. For example, we redefined BaseUrl recently to have a path field, but the tests don't reflect that yet but passed anyway. Because the test case wasn't even discovered and run. --- servant-client/test/Spec.hs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/servant-client/test/Spec.hs b/servant-client/test/Spec.hs index 97681f8d..038e7c8e 100644 --- a/servant-client/test/Spec.hs +++ b/servant-client/test/Spec.hs @@ -1,7 +1,2 @@ -import Servant.ClientSpec (failSpec, spec) - -main :: IO () -main = do - spec - failSpec +{-# OPTIONS_GHC -F -pgmF hspec-discover #-}