Skip to content

Commit a4b45da

Browse files
wz1000mergify[bot]
andauthored
Split plugin tests into two cabal project (#1479)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent af257c3 commit a4b45da

File tree

8 files changed

+21
-12
lines changed

8 files changed

+21
-12
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cabal-version: 1.18
2+
name: plugin
3+
version: 1.0.0
4+
build-type: Simple
5+
6+
library
7+
build-depends: base, ghc-typelits-knownnat
8+
exposed-modules: KnownNat
9+
hs-source-dirs: .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
packages: .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
cabal-version: 1.18
2+
name: plugin
3+
version: 1.0.0
4+
build-type: Simple
5+
6+
library
7+
build-depends: base, record-dot-preprocessor, record-hasfield
8+
exposed-modules: RecordDot
9+
hs-source-dirs: .

ghcide/test/data/plugin/plugin.cabal

-10
This file was deleted.

ghcide/test/exe/Main.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3405,7 +3405,7 @@ checkFileCompiles fp diag =
34053405
pluginSimpleTests :: TestTree
34063406
pluginSimpleTests =
34073407
ignoreInWindowsForGHC88And810 $
3408-
testSessionWithExtraFiles "plugin" "simple plugin" $ \dir -> do
3408+
testSessionWithExtraFiles "plugin-knownnat" "simple plugin" $ \dir -> do
34093409
_ <- openDoc (dir </> "KnownNat.hs") "haskell"
34103410
liftIO $ writeFile (dir</>"hie.yaml")
34113411
"cradle: {cabal: [{path: '.', component: 'lib:plugin'}]}"
@@ -3419,7 +3419,7 @@ pluginSimpleTests =
34193419
pluginParsedResultTests :: TestTree
34203420
pluginParsedResultTests =
34213421
ignoreInWindowsForGHC88And810 $
3422-
testSessionWithExtraFiles "plugin" "parsedResultAction plugin" $ \dir -> do
3422+
testSessionWithExtraFiles "plugin-recorddot" "parsedResultAction plugin" $ \dir -> do
34233423
_ <- openDoc (dir</> "RecordDot.hs") "haskell"
34243424
expectNoMoreDiagnostics 2
34253425

0 commit comments

Comments
 (0)