Skip to content
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

Enable highlight unittests #656

Merged
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
6 changes: 2 additions & 4 deletions test/functional/Highlight.hs
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
{-# LANGUAGE OverloadedStrings #-}
module Highlight (tests) where

import Control.Applicative.Combinators
import Control.Monad.IO.Class
import Language.Haskell.LSP.Test
import Language.Haskell.LSP.Types
import Test.Hls.Util
import Test.Tasty
import Test.Tasty.ExpectedFailure (ignoreTestBecause)
import Test.Tasty.HUnit

tests :: TestTree
tests = testGroup "highlight" [
ignoreTestBecause "Broken" $ testCase "works" $ runSession hlsCommand fullCaps "test/testdata" $ do
testCase "works" $ runSession hlsCommand fullCaps "test/testdata" $ do
doc <- openDoc "Highlight.hs" "haskell"
_ <- count 2 $ skipManyTill loggingNotification noDiagnostics
_ <- waitForDiagnosticsFrom doc
highlights <- getHighlights doc (Position 2 2)
liftIO $ do
let hls =
Expand Down
1 change: 1 addition & 0 deletions test/testdata/hie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cradle:
- "CodeActionImport"
- "CodeActionOnly"
- "CodeActionRename"
- "Highlight"
- "Symbols"
- "TopLevelSignature"
- "TypedHoles"
Expand Down