Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not show warning when no problems were found #45

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
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
22 changes: 13 additions & 9 deletions lua/neotest-golang/results_dir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,13 @@ function M.show_warnings(d)
table.insert(position_ids, pos_id)
end
end
vim.notify(
"Test(s) not associated (not found/executed):\n"
.. table.concat(position_ids, "\n"),
vim.log.levels.DEBUG
)
if #position_ids > 0 then
vim.notify(
"Test(s) not associated (not found/executed):\n"
.. table.concat(position_ids, "\n"),
vim.log.levels.DEBUG
)
end
end

if options.get().warn_test_name_dupes == true then
Expand All @@ -298,10 +300,12 @@ function M.show_warnings(d)
)
end
end
vim.notify(
"Duplicate test name(s) detected:\n" .. table.concat(test_dupes, "\n"),
vim.log.levels.WARN
)
if #test_dupes > 0 then
vim.notify(
"Duplicate test name(s) detected:\n" .. table.concat(test_dupes, "\n"),
vim.log.levels.WARN
)
end
end
end

Expand Down
Loading