From c1d10126bf8401a26772d3e80a0c633164d457a1 Mon Sep 17 00:00:00 2001 From: Daniel Firth Date: Mon, 9 Dec 2024 05:24:19 +0000 Subject: [PATCH] Rename HydraTestUtilsSpec to Spec --- hydra-test-utils/hydra-test-utils.cabal | 2 +- hydra-test-utils/test/HydraTestUtilsSpec.hs | 1 - hydra-test-utils/test/Main.hs | 4 ++-- hydra-test-utils/test/Spec.hs | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 hydra-test-utils/test/HydraTestUtilsSpec.hs create mode 100644 hydra-test-utils/test/Spec.hs diff --git a/hydra-test-utils/hydra-test-utils.cabal b/hydra-test-utils/hydra-test-utils.cabal index f602b1606b2..b8e616813d3 100644 --- a/hydra-test-utils/hydra-test-utils.cabal +++ b/hydra-test-utils/hydra-test-utils.cabal @@ -58,7 +58,7 @@ test-suite hydra-test-util-tests import: package-config hs-source-dirs: test other-modules: - HydraTestUtilsSpec + Spec Test.HSpec.MarkdownFormatterSpec main-is: Main.hs diff --git a/hydra-test-utils/test/HydraTestUtilsSpec.hs b/hydra-test-utils/test/HydraTestUtilsSpec.hs deleted file mode 100644 index cef127d9e52..00000000000 --- a/hydra-test-utils/test/HydraTestUtilsSpec.hs +++ /dev/null @@ -1 +0,0 @@ -{-# OPTIONS_GHC -F -pgmF hspec-discover -optF --module-name=HydraTestUtilsSpec #-} diff --git a/hydra-test-utils/test/Main.hs b/hydra-test-utils/test/Main.hs index b995e6b5187..973ee182f26 100644 --- a/hydra-test-utils/test/Main.hs +++ b/hydra-test-utils/test/Main.hs @@ -1,9 +1,9 @@ module Main where import Hydra.Prelude -import HydraTestUtilsSpec qualified +import Spec qualified import Test.Hspec.Runner import Test.Hydra.Prelude (combinedHspecFormatter) main :: IO () -main = hspecWith defaultConfig{configFormat = Just (combinedHspecFormatter "hydra-test-utils")} HydraTestUtilsSpec.spec +main = hspecWith defaultConfig{configFormat = Just (combinedHspecFormatter "hydra-test-utils")} Spec.spec diff --git a/hydra-test-utils/test/Spec.hs b/hydra-test-utils/test/Spec.hs new file mode 100644 index 00000000000..5416ef6a866 --- /dev/null +++ b/hydra-test-utils/test/Spec.hs @@ -0,0 +1 @@ +{-# OPTIONS_GHC -F -pgmF hspec-discover -optF --module-name=Spec #-}