Skip to content

Commit e74372c

Browse files
committed
Remove the separate ghcide-test-utils package
1 parent 40011a2 commit e74372c

7 files changed

+52
-65
lines changed

cabal.project

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ packages:
55
./hls-graph
66
./ghcide
77
./ghcide-bench
8-
./ghcide/test
98
./hls-plugin-api
109
./hls-test-utils
1110

ghcide-bench/ghcide-bench.cabal

+1-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ library
6767
directory,
6868
extra,
6969
filepath,
70-
ghcide,
71-
ghcide-test-utils,
70+
ghcide:{ghcide, ghcide-test-utils},
7271
hashable,
7372
lens,
7473
lsp-test,

ghcide/ghcide.cabal

+47-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cabal-version: 3.0
1+
cabal-version: 3.4
22
build-type: Simple
33
category: Development
44
name: ghcide
@@ -280,6 +280,50 @@ executable ghcide
280280
if !flag(executable)
281281
buildable: False
282282

283+
library ghcide-test-utils
284+
import: warnings
285+
visibility: public
286+
default-language: Haskell2010
287+
288+
hs-source-dirs: test/src test/cabal
289+
exposed-modules:
290+
Development.IDE.Test
291+
Development.IDE.Test.Runfiles
292+
Development.IDE.Test.Diagnostic
293+
294+
build-depends:
295+
aeson,
296+
base > 4.9 && < 5,
297+
containers,
298+
data-default,
299+
directory,
300+
extra,
301+
filepath,
302+
ghcide,
303+
lsp-types,
304+
hls-plugin-api,
305+
lens,
306+
lsp-test ^>= 0.16,
307+
tasty-hunit >= 0.10,
308+
text,
309+
row-types,
310+
311+
default-extensions:
312+
BangPatterns
313+
DeriveFunctor
314+
DeriveGeneric
315+
FlexibleContexts
316+
GeneralizedNewtypeDeriving
317+
LambdaCase
318+
NamedFieldPuns
319+
OverloadedStrings
320+
RecordWildCards
321+
ScopedTypeVariables
322+
StandaloneDeriving
323+
TupleSections
324+
TypeApplications
325+
ViewPatterns
326+
283327
test-suite ghcide-tests
284328
import: warnings
285329
type: exitcode-stdio-1.0
@@ -301,6 +345,7 @@ test-suite ghcide-tests
301345
, filepath
302346
, fuzzy
303347
, ghcide
348+
, ghcide:ghcide-test-utils
304349
, hls-plugin-api
305350
, lens
306351
, list-t
@@ -330,7 +375,7 @@ test-suite ghcide-tests
330375
if impl(ghc <9.3)
331376
build-depends: ghc-typelits-knownnat
332377

333-
hs-source-dirs: test/cabal test/exe test/src
378+
hs-source-dirs: test/exe
334379
ghc-options: -threaded -O0
335380

336381
main-is: Main.hs
@@ -343,9 +388,6 @@ test-suite ghcide-tests
343388
CPPTests
344389
CradleTests
345390
DependentFileTest
346-
Development.IDE.Test
347-
Development.IDE.Test.Diagnostic
348-
Development.IDE.Test.Runfiles
349391
DiagnosticTests
350392
ExceptionTests
351393
FindDefinitionAndHoverTests

ghcide/test/ghcide-test-utils.cabal

-50
This file was deleted.

haskell-language-server.cabal

+4-5
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ test-suite hls-call-hierarchy-plugin-tests
327327
, filepath
328328
, haskell-language-server:hls-call-hierarchy-plugin
329329
, hls-test-utils == 2.6.0.0
330-
, ghcide-test-utils
330+
, ghcide:ghcide-test-utils
331331
, lens
332332
, lsp
333333
, lsp-test
@@ -1514,8 +1514,7 @@ test-suite hls-refactor-plugin-tests
15141514
, parser-combinators
15151515
, data-default
15161516
, extra
1517-
, ghcide
1518-
, ghcide-test-utils
1517+
, ghcide:{ghcide, ghcide-test-utils}
15191518
, shake
15201519
, hls-plugin-api
15211520
, lsp-test
@@ -1590,7 +1589,7 @@ test-suite hls-semantic-tokens-plugin-tests
15901589
, filepath
15911590
, haskell-language-server:hls-semantic-tokens-plugin
15921591
, hls-test-utils == 2.6.0.0
1593-
, ghcide-test-utils
1592+
, ghcide:ghcide-test-utils
15941593
, hls-plugin-api
15951594
, lens
15961595
, lsp
@@ -1763,7 +1762,7 @@ test-suite func-test
17631762
, deepseq
17641763
, extra
17651764
, filepath
1766-
, ghcide
1765+
, ghcide:{ghcide, ghcide-test-utils}
17671766
, ghcide-test-utils
17681767
, hashable
17691768
, hls-plugin-api

stack-lts21.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ packages:
55
- ./hie-compat
66
- ./hls-graph
77
- ./ghcide/
8-
- ./ghcide/test
98
- ./hls-plugin-api
109
- ./hls-test-utils
1110
# - ./shake-bench

stack.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ packages:
55
- ./hie-compat
66
- ./hls-graph
77
- ./ghcide/
8-
- ./ghcide/test
98
- ./hls-plugin-api
109
- ./hls-test-utils
1110
# - ./shake-bench

0 commit comments

Comments
 (0)