Skip to content

Commit

Permalink
Remove windows golden test
Browse files Browse the repository at this point in the history
Because it's complicated to retrieve a working file
on unix.
  • Loading branch information
hasufell committed Nov 20, 2024
1 parent 7e88092 commit 042fadb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19,251 deletions.
8 changes: 3 additions & 5 deletions test/ghcup-test/GHCup/Types/JSONSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import GHCup.Types hiding ( defaultSettings )
import GHCup.Types.JSON ()
import GHCup.Prelude

import Control.Monad (when)
import Test.Aeson.GenericSpecs
import Test.Hspec

Expand All @@ -15,9 +16,6 @@ import Test.Hspec
spec :: Spec
spec = do
roundtripSpecs (Proxy @LinuxDistro)
roundtripAndGoldenSpecsWithSettings (defaultSettings { goldenDirectoryOption = CustomDirectoryName goldenDir, sampleSize = 2 }) (Proxy @GHCupInfo)
where
goldenDir
| isWindows = "test/ghcup-test/golden/windows"
| otherwise = "test/ghcup-test/golden/unix"
when (not isWindows) $
roundtripAndGoldenSpecsWithSettings (defaultSettings { goldenDirectoryOption = CustomDirectoryName "test/ghcup-test/golden/unix", sampleSize = 2 }) (Proxy @GHCupInfo)

Loading

0 comments on commit 042fadb

Please sign in to comment.