Skip to content

Commit

Permalink
fix: treesitter query
Browse files Browse the repository at this point in the history
  • Loading branch information
atm1020 committed Nov 24, 2024
1 parent d4dbb4e commit a0e7cd5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lua/neotest-jdtls/neotest/impl/discover_positions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,19 @@ M.discover_positions = function(file_path)
)
)
name: (identifier) @test.name
) @test.definition
)
@test.definition
;; @ParameterizedTest(xx) functions
(method_declaration
(modifiers
(annotation
name: (identifier) @annotation
(#any-of? @annotation "ParameterizedTest" )
)
)
name: (identifier) @test.name
)
@test.definition
]]

Expand Down

0 comments on commit a0e7cd5

Please sign in to comment.