From 3b9aa3b0db85b2f577482890e2af414f5545d228 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Thu, 12 Sep 2024 00:14:55 -0500 Subject: [PATCH] Don't run slow tests in coverage measurement --- lua/test.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lua/test.lua b/lua/test.lua index 89b13468..37652318 100644 --- a/lua/test.lua +++ b/lua/test.lua @@ -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