Skip to content

Commit d74ade7

Browse files
committed
trace tests
1 parent eb50012 commit d74ade7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/FunctionalBadProject.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module FunctionalBadProject (tests) where
44

55
import Control.Lens
66
import qualified Data.Text as T
7+
import Debug.Trace (traceIO)
78
import qualified Language.LSP.Protocol.Lens as L
89
import Test.Hls
910
import Test.Hls.Command
@@ -23,6 +24,8 @@ tests = testGroup "behaviour on malformed projects"
2324
[diag] <- waitForDiagnosticsFrom doc
2425
liftIO $ assertBool "missing module name" $
2526
"Other" `T.isInfixOf` (diag ^. L.message)
27+
-- liftIO $ traceIO $ show diag
28+
liftIO $ traceIO $ show $ diag ^. L.message
2629
liftIO $ assertBool "hie-bios message" $
2730
"Cabal" `T.isInfixOf` (diag ^. L.message)
2831
]

0 commit comments

Comments
 (0)