Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a2a2306
Initial Structure
jeffwindsor May 4, 2020
56363dd
Incorporate hls-test-utils
jeffwindsor May 9, 2020
4ec1817
Move to functional folder with first real test
jeffwindsor May 9, 2020
d1ab2d8
Commands (de-prefix failing)
jeffwindsor May 9, 2020
7c4f670
full test data
jeffwindsor May 9, 2020
86017da
add Completion Tests (all are timing out as of now)
jeffwindsor May 9, 2020
7ba6cc9
add Deferred Tests (2 out 4 failing)
jeffwindsor May 9, 2020
f3c5b87
Refactor Test Util and remove spec files
jeffwindsor May 10, 2020
c0d7dd1
add definition tests
jeffwindsor May 10, 2020
2949754
add diagnostic tests
jeffwindsor May 10, 2020
7b6c550
add format tests
jeffwindsor May 10, 2020
ece0d31
add FunctionalCodeAction tests
jeffwindsor May 10, 2020
f08db9b
add FunctionalLiquid HieBois Highlist tests
jeffwindsor May 10, 2020
f9173b0
add other tests
jeffwindsor May 10, 2020
8cccd93
turn on all tests
jeffwindsor May 10, 2020
d0c0e61
move and restore full test util module
jeffwindsor May 10, 2020
218ac49
add warmup, missing runner
jeffwindsor May 10, 2020
3274928
merge upstream master
jeffwindsor May 10, 2020
7c3d784
use hspec-expectations for shoulds
jeffwindsor May 11, 2020
fc140e5
add tasty-rerun
jeffwindsor May 11, 2020
ab41c8e
Merge branch 'master' into issue-5
jeffwindsor May 16, 2020
f23d9e4
remove old tasty util reference
jeffwindsor May 16, 2020
ade13db
rename Test.HIE.Util to Test.Hls.Util
jeffwindsor May 16, 2020
b16623e
fix ResponseMessage change
jeffwindsor May 17, 2020
2f55523
fix tests do not compile after update
jeffwindsor May 17, 2020
182b539
remove cabal-helper depends
jeffwindsor May 17, 2020
092db6e
ignore broken tests
jeffwindsor May 17, 2020
0c1708f
add xml output to runner
jeffwindsor May 17, 2020
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
Prev Previous commit
Next Next commit
Commands (de-prefix failing)
  • Loading branch information
jeffwindsor committed May 9, 2020
commit d1ab2d8657f6e51d835b2b0a00dafd15cb07dc34
23 changes: 16 additions & 7 deletions test/functional/Commands.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@ import TastyUtils

tests :: TestTree
tests = testGroup "Commands" [
testCase "are prefixed" $ runSession hieCommand fullCaps "test/testdata/" $ do
ResponseMessage _ _ (Just res) Nothing <- initializeResponse
let List cmds = res ^. LSP.capabilities . executeCommandProvider . _Just . commands
f x = (T.length (T.takeWhile isNumber x) >= 1) && (T.count ":" x >= 2)
liftIO $ do
cmds `shouldSatisfy` all f
cmds `shouldNotSatisfy` null
testCase "are prefixed" $
runSession hieCommand fullCaps "test/testdata/" $ do
ResponseMessage _ _ (Just res) Nothing <- initializeResponse
let List cmds = res ^. LSP.capabilities . executeCommandProvider . _Just . commands
f x = (T.length (T.takeWhile isNumber x) >= 1) && (T.count ":" x >= 2)
liftIO $ do
cmds `shouldSatisfy` all f
cmds `shouldNotSatisfy` null
, testCase "get de-prefixed" $
runSession hieCommand fullCaps "test/testdata/" $ do
ResponseMessage _ _ _ (Just err) <- request
WorkspaceExecuteCommand
(ExecuteCommandParams "1234:package:add" (Just (List [])) Nothing) :: Session ExecuteCommandResponse
let ResponseError _ msg _ = err
-- We expect an error message about the dud arguments, but should pickup "add" and "package"
liftIO $ msg `shouldSatisfy` T.isInfixOf "while parsing args for add in plugin package"
]