From a40861645a9bc9a166c7d35ad09083919b4cec38 Mon Sep 17 00:00:00 2001 From: George Roman <30772943+georgeroman@users.noreply.github.com> Date: Tue, 5 Jun 2018 23:26:37 +0300 Subject: Tests: collect coverage data from unit tests (#814) --- spec/fetch_spec.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'spec/fetch_spec.lua') diff --git a/spec/fetch_spec.lua b/spec/fetch_spec.lua index be138b8c..30709fcb 100644 --- a/spec/fetch_spec.lua +++ b/spec/fetch_spec.lua @@ -14,6 +14,17 @@ describe("Luarocks fetch test #unit", function() return file1 == file2 or lfs.attributes(file1).ino == lfs.attributes(file2).ino end + local runner + + setup(function() + runner = require("luacov.runner") + runner.init(testing_paths.testrun_dir .. "/luacov.config") + end) + + teardown(function() + runner.shutdown() + end) + describe("fetch.is_basic_protocol", function() it("checks whether the arguments represent a valid protocol and returns the result of the check", function() assert.truthy(fetch.is_basic_protocol("http")) -- cgit v1.2.3-55-g6feb