From a0e7cd5a3932f51e5940f795929de50ffc3b5f49 Mon Sep 17 00:00:00 2001 From: atmq1020 Date: Wed, 20 Nov 2024 00:16:35 +0100 Subject: [PATCH] fix: treesitter query --- .../neotest/impl/discover_positions.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lua/neotest-jdtls/neotest/impl/discover_positions.lua b/lua/neotest-jdtls/neotest/impl/discover_positions.lua index 2900d18..9dabf93 100644 --- a/lua/neotest-jdtls/neotest/impl/discover_positions.lua +++ b/lua/neotest-jdtls/neotest/impl/discover_positions.lua @@ -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 ]]