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/fetch_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/fetch_spec.lua')
-rw-r--r-- | spec/fetch_spec.lua | 11 |
1 files changed, 11 insertions, 0 deletions
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() | |||
14 | return file1 == file2 or lfs.attributes(file1).ino == lfs.attributes(file2).ino | 14 | return file1 == file2 or lfs.attributes(file1).ino == lfs.attributes(file2).ino |
15 | end | 15 | end |
16 | 16 | ||
17 | local runner | ||
18 | |||
19 | setup(function() | ||
20 | runner = require("luacov.runner") | ||
21 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | ||
22 | end) | ||
23 | |||
24 | teardown(function() | ||
25 | runner.shutdown() | ||
26 | end) | ||
27 | |||
17 | describe("fetch.is_basic_protocol", function() | 28 | describe("fetch.is_basic_protocol", function() |
18 | it("checks whether the arguments represent a valid protocol and returns the result of the check", function() | 29 | it("checks whether the arguments represent a valid protocol and returns the result of the check", function() |
19 | assert.truthy(fetch.is_basic_protocol("http")) | 30 | assert.truthy(fetch.is_basic_protocol("http")) |