aboutsummaryrefslogtreecommitdiff
path: root/spec/dir_spec.lua
diff options
context:
space:
mode:
authorGeorge Roman <george.roman.99@gmail.com>2018-06-10 23:41:32 +0300
committerHisham Muhammad <hisham@gobolinux.org>2018-06-12 15:23:31 -0300
commit9f00925a3d5e70350ad73d908d99c8ef634dc7eb (patch)
tree7cf909d742bd4f07b6207d4d54adc723250b8b1d /spec/dir_spec.lua
parent1fb1a5668a87e80c6eb7fe54e8b9fa8b1ef5851f (diff)
downloadluarocks-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.lua12
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 @@
1local test_env = require("spec.util.test_env") 1local test_env = require("spec.util.test_env")
2local testing_paths = test_env.testing_paths
2 3
3test_env.unload_luarocks() 4test_env.unload_luarocks()
4test_env.setup_specs() 5test_env.setup_specs()
5local dir = require("luarocks.dir") 6local dir = require("luarocks.dir")
6 7
7describe("Luarocks dir test #unit", function() 8describe("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()