diff options
author | George Roman <george.roman.99@gmail.com> | 2018-06-10 23:41:32 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-12 15:23:31 -0300 |
commit | 9f00925a3d5e70350ad73d908d99c8ef634dc7eb (patch) | |
tree | 7cf909d742bd4f07b6207d4d54adc723250b8b1d /spec/dir_spec.lua | |
parent | 1fb1a5668a87e80c6eb7fe54e8b9fa8b1ef5851f (diff) | |
download | luarocks-9f00925a3d5e70350ad73d908d99c8ef634dc7eb.tar.gz luarocks-9f00925a3d5e70350ad73d908d99c8ef634dc7eb.tar.bz2 luarocks-9f00925a3d5e70350ad73d908d99c8ef634dc7eb.zip |
Fix the collecting of coverage data from unit tests
Diffstat (limited to 'spec/dir_spec.lua')
-rw-r--r-- | spec/dir_spec.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/dir_spec.lua b/spec/dir_spec.lua index 27966777..08fb6e23 100644 --- a/spec/dir_spec.lua +++ b/spec/dir_spec.lua | |||
@@ -1,10 +1,22 @@ | |||
1 | local test_env = require("spec.util.test_env") | 1 | local test_env = require("spec.util.test_env") |
2 | local testing_paths = test_env.testing_paths | ||
2 | 3 | ||
3 | test_env.unload_luarocks() | 4 | test_env.unload_luarocks() |
4 | test_env.setup_specs() | 5 | test_env.setup_specs() |
5 | local dir = require("luarocks.dir") | 6 | local dir = require("luarocks.dir") |
6 | 7 | ||
7 | describe("Luarocks dir test #unit", function() | 8 | describe("Luarocks dir test #unit", function() |
9 | local runner | ||
10 | |||
11 | setup(function() | ||
12 | runner = require("luacov.runner") | ||
13 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | ||
14 | runner.tick = true | ||
15 | end) | ||
16 | |||
17 | teardown(function() | ||
18 | runner.shutdown() | ||
19 | end) | ||
8 | 20 | ||
9 | describe("dir.is_basic_protocol", function() | 21 | describe("dir.is_basic_protocol", function() |
10 | it("checks whether the arguments represent a valid protocol and returns the result of the check", function() | 22 | it("checks whether the arguments represent a valid protocol and returns the result of the check", function() |