awesome/.luacov

29 lines
718 B
Text
Raw Normal View History

-- 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",
include = {
2017-01-03 17:21:43 +01:00
escape_pattern(source) .. "/.+",
-- Relative paths (to source/build dir).
'^[^/].+',
},
-- configuration for luacov-coveralls reporter
coveralls = {
pathcorrect = {
2017-01-03 17:21:43 +01:00
{ escape_pattern(source .. '/'), ''},
},
},
}
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80