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/fetch_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/fetch_spec.lua')
| -rw-r--r-- | spec/fetch_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/fetch_spec.lua b/spec/fetch_spec.lua index aa107970..3564bffe 100644 --- a/spec/fetch_spec.lua +++ b/spec/fetch_spec.lua | |||
| @@ -9,7 +9,7 @@ local lfs = require("lfs") | |||
| 9 | local testing_paths = test_env.testing_paths | 9 | local testing_paths = test_env.testing_paths |
| 10 | local get_tmp_path = test_env.get_tmp_path | 10 | local get_tmp_path = test_env.get_tmp_path |
| 11 | 11 | ||
| 12 | describe("Luarocks fetch test #unit", function() | 12 | describe("Luarocks fetch test #unit", function() |
| 13 | local are_same_files = function(file1, file2) | 13 | local are_same_files = function(file1, file2) |
| 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 |
| @@ -19,6 +19,7 @@ describe("Luarocks fetch test #unit", function() | |||
| 19 | setup(function() | 19 | setup(function() |
| 20 | runner = require("luacov.runner") | 20 | runner = require("luacov.runner") |
| 21 | runner.init(testing_paths.testrun_dir .. "/luacov.config") | 21 | runner.init(testing_paths.testrun_dir .. "/luacov.config") |
| 22 | runner.tick = true | ||
| 22 | end) | 23 | end) |
| 23 | 24 | ||
| 24 | teardown(function() | 25 | teardown(function() |
