Skip to content

[merge hls-test-utils and ghcide-test-utils] part of #4173 Migrate ghcide tests to hls test utils #4197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ packages:
./shake-bench
./hls-graph
./ghcide
./ghcide-bench
./hls-plugin-api
./hls-test-utils

Expand Down
108 changes: 0 additions & 108 deletions ghcide-bench/ghcide-bench.cabal

This file was deleted.

2 changes: 0 additions & 2 deletions ghcide/ghcide.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,7 @@ library ghcide-test-utils

hs-source-dirs: test/src test/cabal
exposed-modules:
Development.IDE.Test
Development.IDE.Test.Runfiles
Development.IDE.Test.Diagnostic

build-depends:
aeson,
Expand Down
98 changes: 96 additions & 2 deletions haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -2074,7 +2074,7 @@ benchmark benchmark
main-is: Main.hs
hs-source-dirs: bench
build-tool-depends:
ghcide-bench:ghcide-bench,
haskell-language-server:ghcide-bench,
hp2pretty:hp2pretty,
default-extensions:
LambdaCase
Expand All @@ -2089,7 +2089,7 @@ benchmark benchmark
, directory
, extra
, filepath
, ghcide-bench
, haskell-language-server:ghcide-bench-lib
, haskell-language-server
, hls-plugin-api
, lens
Expand Down Expand Up @@ -2199,3 +2199,97 @@ test-suite ghcide-tests
OverloadedStrings
RecordWildCards
ViewPatterns


executable ghcide-bench
default-language: GHC2021
build-depends:
aeson,
base,
bytestring,
containers,
data-default,
directory,
extra,
filepath,
hls-plugin-api,
hls-test-utils,
lens,
lsp-test,
lsp-types,
optparse-applicative,
process,
safe-exceptions,
hls-graph,
shake,
tasty-hunit >= 0.10,
text,
haskell-language-server:ghcide-bench-lib,
hs-source-dirs: ghcide-bench/exe
ghc-options: -threaded -Wall -Wno-name-shadowing -rtsopts
main-is: Main.hs
default-extensions:
LambdaCase
OverloadedStrings
RecordWildCards
ViewPatterns

library ghcide-bench-lib
default-language: GHC2021
hs-source-dirs: ghcide-bench/src
ghc-options: -Wall -Wno-name-shadowing
exposed-modules:
Experiments.Types
Experiments
build-depends:
aeson,
async,
base == 4.*,
binary,
bytestring,
deepseq,
directory,
extra,
filepath,
ghcide:{ghcide, ghcide-test-utils},
hashable,
lens,
lsp-test,
lsp-types,
optparse-applicative,
parser-combinators,
process,
safe-exceptions,
shake,
text,
hls-test-utils,
row-types
default-extensions:
LambdaCase
RecordWildCards
ViewPatterns


test-suite ghcide-bench-test
type: exitcode-stdio-1.0
default-language: GHC2021
build-tool-depends:
ghcide:ghcide,
main-is: Main.hs
hs-source-dirs: ghcide-bench/test
ghc-options: -Wunused-packages
ghc-options: -threaded -Wall
build-depends:
base,
extra,
haskell-language-server:ghcide-bench-lib,
lsp-test ^>= 0.17,
tasty,
tasty-hunit >= 0.10,
tasty-rerun,
hls-test-utils
default-extensions:
LambdaCase
OverloadedStrings
RecordWildCards
ViewPatterns
2 changes: 2 additions & 0 deletions hls-test-utils/hls-test-utils.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ library
Test.Hls
Test.Hls.Util
Test.Hls.FileSystem
Development.IDE.Test
Development.IDE.Test.Diagnostic

hs-source-dirs: src
build-depends:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}

module Development.IDE.Test
( Cursor
Expand Down
Loading