From 9f00925a3d5e70350ad73d908d99c8ef634dc7eb Mon Sep 17 00:00:00 2001 From: George Roman Date: Sun, 10 Jun 2018 23:41:32 +0300 Subject: Fix the collecting of coverage data from unit tests --- spec/dir_spec.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'spec/dir_spec.lua') 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 @@ local test_env = require("spec.util.test_env") +local testing_paths = test_env.testing_paths test_env.unload_luarocks() test_env.setup_specs() local dir = require("luarocks.dir") describe("Luarocks dir test #unit", function() + local runner + + setup(function() + runner = require("luacov.runner") + runner.init(testing_paths.testrun_dir .. "/luacov.config") + runner.tick = true + end) + + teardown(function() + runner.shutdown() + end) describe("dir.is_basic_protocol", function() it("checks whether the arguments represent a valid protocol and returns the result of the check", function() -- cgit v1.2.3-55-g6feb