diff options
author | George Roman <30772943+georgeroman@users.noreply.github.com> | 2018-06-05 23:26:37 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-05 17:26:37 -0300 |
commit | a40861645a9bc9a166c7d35ad09083919b4cec38 (patch) | |
tree | dff03d3102a45d46941b52ec9da17041954a25b8 /spec/fun_spec.lua | |
parent | d25d70512faf81a4fe2c6764e771ee3290f88a37 (diff) | |
download | luarocks-a40861645a9bc9a166c7d35ad09083919b4cec38.tar.gz luarocks-a40861645a9bc9a166c7d35ad09083919b4cec38.tar.bz2 luarocks-a40861645a9bc9a166c7d35ad09083919b4cec38.zip |
Tests: collect coverage data from unit tests (#814)
Diffstat (limited to 'spec/fun_spec.lua')
-rw-r--r-- | spec/fun_spec.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/spec/fun_spec.lua b/spec/fun_spec.lua index 259a3148..b0a082ac 100644 --- a/spec/fun_spec.lua +++ b/spec/fun_spec.lua | |||
@@ -1,9 +1,21 @@ | |||
1 | local test_env = require("spec.util.test_env") | 1 | local test_env = require("spec.util.test_env") |
2 | local fun = require("luarocks.fun") | 2 | local testing_paths = test_env.testing_paths |
3 | 3 | ||
4 | test_env.unload_luarocks() | 4 | test_env.unload_luarocks() |
5 | local fun = require("luarocks.fun") | ||
5 | 6 | ||
6 | describe("LuaRocks fun tests #unit", function() | 7 | describe("LuaRocks fun tests #unit", function() |
8 | local runner | ||
9 | |||
10 | setup(function() | ||
11 | runner = require("luacov.runner") | ||
12 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | ||
13 | end) | ||
14 | |||
15 | teardown(function() | ||
16 | runner.shutdown() | ||
17 | end) | ||
18 | |||
7 | describe("fun.concat", function() | 19 | describe("fun.concat", function() |
8 | it("returns the concatenation of the two tables given as arguments", function() | 20 | it("returns the concatenation of the two tables given as arguments", function() |
9 | local t1, t2 | 21 | local t1, t2 |