forked from Elv13/awesome-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.luacov
29 lines (23 loc) · 766 Bytes
/
.luacov
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-- Configuration file for LuaCov
-- This variable is set externally
local source = os.getenv("SOURCE_DIRECTORY") or os.getenv('PWD')
local build = os.getenv("BUILD_DIRECTORY") or (source .. "/build")
local function escape_pattern(str)
return string.gsub(str, "%W", "%%%1")
end
return {
statsfile = build .. "/luacov.stats.out",
reportfile = build .. "/luacov.report.out",
include = {
escape_pattern(source) .. "/.+",
-- Relative paths (to source/build dir).
'^[^/].+',
},
-- configuration for luacov-coveralls reporter
coveralls = {
pathcorrect = {
{ escape_pattern(source .. '/'), ''},
},
},
}
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80