Skip to content

Commit

Permalink
Migrate PluginSimpleTests
Browse files Browse the repository at this point in the history
  • Loading branch information
soulomoon committed May 27, 2024
1 parent 838a51f commit 6f12ee9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ghcide/test/exe/PluginSimpleTests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ import Language.LSP.Protocol.Types hiding (SemanticTokenAbsolute (..),
import Language.LSP.Test
import System.FilePath
-- import Test.QuickCheck.Instances ()
import Config
import Test.Hls.Util (EnvSpec (..), OS (..),
knownBrokenForGhcVersions,
knownBrokenInSpecificEnv)
import Test.Tasty
import TestUtils

tests :: TestTree
tests =
Expand All @@ -36,9 +39,8 @@ tests =

-- Error: cabal: Failed to build ghc-typelits-natnormalise-0.7.7 (which is
-- required by plugin-1.0.0). See the build log above for details.
ignoreFor (BrokenForGHC [GHC96, GHC98]) "fragile, frequently times out" $
ignoreFor (BrokenSpecific Windows [GHC94]) "ghc-typelist-natnormalise fails to build on GHC 9.4.2 for windows only" $
testSessionWithExtraFiles "plugin-knownnat" "simple plugin" $ \dir -> do
knownBrokenInSpecificEnv [HostOS Windows, GhcVer GHC94] "ghc-typelist-natnormalise fails to build on GHC 9.4.2 for windows only" $
testWithExtraFiles "simple plugin" "plugin-knownnat" $ \dir -> do
_ <- openDoc (dir </> "KnownNat.hs") "haskell"
liftIO $ writeFile (dir</>"hie.yaml")
"cradle: {cabal: [{path: '.', component: 'lib:plugin'}]}"
Expand Down

0 comments on commit 6f12ee9

Please sign in to comment.