Skip to content

Commit 18b4045

Browse files
committed
Remove getHspecFormattedConfig which is no longer used.
Bump hspec dependency Closes: #1835 Signed-off-by: hololeap <hololeap@users.noreply.github.com>
1 parent 4018b68 commit 18b4045

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

hls-test-utils/hls-test-utils.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ library
4444
, ghcide ^>=1.6
4545
, hls-graph
4646
, hls-plugin-api ^>=1.3
47-
, hspec <2.8
47+
, hspec <2.10
4848
, hspec-core
4949
, lens
5050
, lsp ^>=1.4

hls-test-utils/src/Test/Hls/Util.hs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ module Test.Hls.Util
1919
, fromAction
2020
, fromCommand
2121
, getCompletionByLabel
22-
, getHspecFormattedConfig
2322
, ghcVersion, GhcVersion(..)
2423
, hostOS, OS(..)
2524
, matchesCurrentEnv, EnvSpec(..)
@@ -169,22 +168,6 @@ hieYamlCradleDirectContents = unlines
169168

170169
-- ---------------------------------------------------------------------
171170

172-
getHspecFormattedConfig :: String -> IO Config
173-
getHspecFormattedConfig name = do
174-
-- https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
175-
isCI <- isJust <$> lookupEnv "CI"
176-
177-
-- Only use the xml formatter on CI since it hides console output
178-
if isCI
179-
then do
180-
let subdir = "test-results" </> name
181-
createDirectoryIfMissing True subdir
182-
183-
return $ defaultConfig { configFormatter = Just xmlFormatter
184-
, configOutputFile = Right $ subdir </> "results.xml"
185-
}
186-
else return defaultConfig
187-
188171
-- | A Hspec formatter for CircleCI.
189172
-- Originally from https://github.com/LeastAuthority/hspec-jenkins
190173
xmlFormatter :: Formatter

0 commit comments

Comments
 (0)