File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -10,23 +10,8 @@ import Test.Hls.Command
10
10
-- ---------------------------------------------------------------------
11
11
12
12
tests :: TestTree
13
- tests = testGroup " diagnostics providers" [
14
- basicTests
15
- , warningTests
16
- ]
13
+ tests = testGroup " diagnostics providers" [ warningTests ]
17
14
18
- basicTests :: TestTree
19
- basicTests = testGroup " Diagnostics work" [
20
- testCase " example plugin produces diagnostics" $
21
- runSession hlsCommandExamplePlugin fullCaps " test/testdata/diagnostics" $ do
22
- doc <- openDoc " Foo.hs" " haskell"
23
- diags <- waitForDiagnosticsFromSource doc " example2"
24
- reduceDiag <- liftIO $ inspectDiagnostic diags [" example2 diagnostic, hello world" ]
25
- liftIO $ do
26
- length diags @?= 1
27
- reduceDiag ^. LSP. range @?= Range (Position 0 0 ) (Position 1 0 )
28
- reduceDiag ^. LSP. severity @?= Just DsError
29
- ]
30
15
31
16
warningTests :: TestTree
32
17
warningTests = testGroup " Warnings are warnings" [
You can’t perform that action at this time.
0 commit comments