aboutsummaryrefslogtreecommitdiff
path: root/spec/util_spec.lua
diff options
context:
space:
mode:
authorGeorge Roman <30772943+georgeroman@users.noreply.github.com>2018-06-05 23:26:37 +0300
committerHisham Muhammad <hisham@gobolinux.org>2018-06-05 17:26:37 -0300
commita40861645a9bc9a166c7d35ad09083919b4cec38 (patch)
treedff03d3102a45d46941b52ec9da17041954a25b8 /spec/util_spec.lua
parentd25d70512faf81a4fe2c6764e771ee3290f88a37 (diff)
downloadluarocks-a40861645a9bc9a166c7d35ad09083919b4cec38.tar.gz
luarocks-a40861645a9bc9a166c7d35ad09083919b4cec38.tar.bz2
luarocks-a40861645a9bc9a166c7d35ad09083919b4cec38.zip
Tests: collect coverage data from unit tests (#814)
Diffstat (limited to 'spec/util_spec.lua')
-rw-r--r--spec/util_spec.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/util_spec.lua b/spec/util_spec.lua
index ce309138..075a2122 100644
--- a/spec/util_spec.lua
+++ b/spec/util_spec.lua
@@ -74,6 +74,17 @@ test_env.unload_luarocks()
74local util = require("luarocks.util") 74local util = require("luarocks.util")
75 75
76describe("Luarocks util test #unit", function() 76describe("Luarocks util test #unit", function()
77 local runner
78
79 setup(function()
80 runner = require("luacov.runner")
81 runner.init(testing_paths.testrun_dir .. "/luacov.config")
82 end)
83
84 teardown(function()
85 runner.shutdown()
86 end)
87
77 describe("util.sortedpairs", function() 88 describe("util.sortedpairs", function()
78 local function collect(iter, state, var) 89 local function collect(iter, state, var)
79 local collected = {} 90 local collected = {}