Skip to content

Commit

Permalink
Don't run slow tests in coverage measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 12, 2024
1 parent 6c47035 commit 3b9aa3b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lua/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ for file_name, config in pairs(problems) do
end

-- Slow testing loop
for file_name, config in pairs(problems) do
if config[2] then
check_problem(file_name, config[1], config[2], file_name:match("(%d+)"))
if not has_luacov
then
for file_name, config in pairs(problems) do
if config[2] then
check_problem(file_name, config[1], config[2], file_name:match("(%d+)"))
end
end
end

0 comments on commit 3b9aa3b

Please sign in to comment.