Skip to content

Move tactics tests to be standalone #1425

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
merged 6 commits into from
Feb 23, 2021
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
3 changes: 0 additions & 3 deletions haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,9 @@ test-suite func-test
Rename
Symbol
TypeDefinition
Tactic
Splice
HaddockComments
Ide.Plugin.Splice.Types
Ide.Plugin.Tactic.FeatureSet
Ide.Plugin.Tactic.TestTypes
Ide.Plugin.Eval.Types

default-extensions: OverloadedStrings
Expand Down
50 changes: 44 additions & 6 deletions plugins/hls-tactics-plugin/hls-tactics-plugin.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,64 @@ library
default-language: Haskell2010
default-extensions: DataKinds, TypeOperators


executable test-server
default-language: Haskell2010
build-depends:
, base
, data-default
, ghcide
, hls-tactics-plugin
, hls-plugin-api
, shake
main-is: Server.hs
hs-source-dirs: test
ghc-options:
"-with-rtsopts=-I0 -A128M"
-threaded -Wall -Wno-name-shadowing -Wredundant-constraints

test-suite tests
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
AutoTupleSpec
GoldenSpec
UnificationSpec
hs-source-dirs:
test
ghc-options: -Wall -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
build-depends:
QuickCheck
, aeson
, base
, bytestring
, checkers
, containers
, data-default
, deepseq
, directory
, filepath
, ghc
, ghcide >= 0.7.5.0
, hie-bios
, hls-plugin-api
, hls-tactics-plugin
, hspec
, hspec-expectations
, lens
, lsp-test
, lsp-types
, megaparsec
, mtl
, hls-tactics-plugin
, hls-plugin-api
, hie-bios
, ghc
, containers
build-tool-depends: hspec-discover:hspec-discover
, tasty
, tasty-ant-xml >=1.1.6
, tasty-expected-failure
, tasty-golden
, tasty-hunit
, tasty-rerun
, text
build-tool-depends:
hspec-discover:hspec-discover
, hls-tactics-plugin:test-server -any
default-language: Haskell2010

28 changes: 11 additions & 17 deletions plugins/hls-tactics-plugin/test/AutoTupleSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,17 @@

module AutoTupleSpec where

import Data.Either (isRight)
import qualified Data.Map as M
import Ide.Plugin.Tactic.Debug
import Ide.Plugin.Tactic.Judgements (mkFirstJudgement)
import Ide.Plugin.Tactic.Machinery
import Ide.Plugin.Tactic.Tactics (auto')
import Ide.Plugin.Tactic.Types
import OccName (mkVarOcc)
import Test.Hspec
import Test.QuickCheck
import Type (mkTyVarTy)
import TysPrim (alphaTyVars)
import TysWiredIn (mkBoxedTupleTy)


instance Show Type where
show = unsafeRender
import Data.Either (isRight)
import Ide.Plugin.Tactic.Judgements (mkFirstJudgement)
import Ide.Plugin.Tactic.Machinery
import Ide.Plugin.Tactic.Tactics (auto')
import Ide.Plugin.Tactic.Types
import OccName (mkVarOcc)
import Test.Hspec
import Test.QuickCheck
import Type (mkTyVarTy)
import TysPrim (alphaTyVars)
import TysWiredIn (mkBoxedTupleTy)


spec :: Spec
Expand Down
Loading