Skip to content

Commit

Permalink
Ignoring non test files to avoid TS processing
Browse files Browse the repository at this point in the history
  • Loading branch information
cgimenes authored Mar 7, 2024
1 parent 2f01e83 commit 1d4ff27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/neotest-phpunit/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ end
---@param file_path string Absolute file path
---@return neotest.Tree | nil
function NeotestAdapter.discover_positions(path)
if not NeotestAdapter.is_test_file(path) then
return nil
end

local query = [[
((class_declaration
name: (name) @namespace.name (#match? @namespace.name "Test")
Expand Down

0 comments on commit 1d4ff27

Please sign in to comment.