Skip to content

Commit

Permalink
trace tests
Browse files Browse the repository at this point in the history
  • Loading branch information
soulomoon committed Oct 25, 2024
1 parent eb50012 commit d74ade7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/FunctionalBadProject.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module FunctionalBadProject (tests) where

import Control.Lens
import qualified Data.Text as T
import Debug.Trace (traceIO)
import qualified Language.LSP.Protocol.Lens as L
import Test.Hls
import Test.Hls.Command
Expand All @@ -23,6 +24,8 @@ tests = testGroup "behaviour on malformed projects"
[diag] <- waitForDiagnosticsFrom doc
liftIO $ assertBool "missing module name" $
"Other" `T.isInfixOf` (diag ^. L.message)
-- liftIO $ traceIO $ show diag
liftIO $ traceIO $ show $ diag ^. L.message

Check failure on line 28 in test/functional/FunctionalBadProject.hs

View workflow job for this annotation

GitHub Actions / Hlint check run

Error in tests in module FunctionalBadProject: Avoid restricted function ▫︎ Found: "traceIO" ▫︎ Note: may break the code
liftIO $ assertBool "hie-bios message" $
"Cabal" `T.isInfixOf` (diag ^. L.message)
]

0 comments on commit d74ade7

Please sign in to comment.