aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-02-26 12:57:47 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-02-26 18:42:35 -0300
commitd3a523a74080ac7b778c36908356e5f6c1f31b8a (patch)
tree11d26b67d6ff73c2cd8ce6aa800ea7f89b4e3fbc /spec
parent01213cb1ee21d0beeaba103577f233c5a6144c54 (diff)
downloadluarocks-d3a523a74080ac7b778c36908356e5f6c1f31b8a.tar.gz
luarocks-d3a523a74080ac7b778c36908356e5f6c1f31b8a.tar.bz2
luarocks-d3a523a74080ac7b778c36908356e5f6c1f31b8a.zip
tests: enable coverage on quick tests
Diffstat (limited to 'spec')
-rw-r--r--spec/util/quick.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/util/quick.lua b/spec/util/quick.lua
index d7df7bb1..6b86bfa9 100644
--- a/spec/util/quick.lua
+++ b/spec/util/quick.lua
@@ -286,8 +286,9 @@ function quick.compile(filename, env)
286 write([=[ local lfs = require("lfs") ]=]) 286 write([=[ local lfs = require("lfs") ]=])
287 write([=[ local fs = require("lfs") ]=]) 287 write([=[ local fs = require("lfs") ]=])
288 write([=[ local dir_sep = package.config:sub(1, 1) ]=]) 288 write([=[ local dir_sep = package.config:sub(1, 1) ]=])
289 write([=[ local luarocks_cmd = test_env.execute_helper(test_env.Q(test_env.testing_paths.lua) .. " " .. test_env.testing_paths.src_dir .. "/bin/luarocks", false, test_env.env_variables):sub(1, -5) ]=]) 289 write([=[ local coverage = " -e \"require('luacov.runner')([[" .. test_env.testing_paths.testrun_dir .. dir_sep .. "luacov.config]])\" " ]=])
290 write([=[ local luarocks_admin_cmd = test_env.execute_helper(test_env.Q(test_env.testing_paths.lua) .. " " .. test_env.testing_paths.src_dir .. "/bin/luarocks-admin", false, test_env.env_variables):sub(1, -5) ]=]) 290 write([=[ local luarocks_cmd = test_env.execute_helper(test_env.Q(test_env.testing_paths.lua) .. coverage .. " " .. test_env.testing_paths.src_dir .. "/bin/luarocks", false, test_env.env_variables):sub(1, -5) ]=])
291 write([=[ local luarocks_admin_cmd = test_env.execute_helper(test_env.Q(test_env.testing_paths.lua) .. coverage .. " " .. test_env.testing_paths.src_dir .. "/bin/luarocks-admin", false, test_env.env_variables):sub(1, -5) ]=])
291 292
292 write([=[ local function make_dir(dirname) ]=]) 293 write([=[ local function make_dir(dirname) ]=])
293 write([=[ local bits = {} ]=]) 294 write([=[ local bits = {} ]=])