-- -- Per https://github.com/lunarmodules/luacov/blob/c915f4b95e8df5dbfaf2b1f04f0b7da04506fc7a/src/luacov/reporter.lua#L102 -- -- > The option includeuntestedfiles requires the lfs module (from luafilesystem) to be installed. -- -- So I'm ok with including it here, since it's already an hard dependency. -- local lfs = require "lfs" -- local function walk(dir, callback) -- for file in lfs.dir(dir) do -- if file ~= "." and file ~= ".." then -- local path = dir .. "/" .. file -- local attr = lfs.attributes(path) -- if attr.mode == "directory" then -- walk(path, callback) -- else -- callback(path) -- end -- end -- end -- end -- local teal_files = {} -- for _, path in pairs { "spec", "src" } do -- walk(path, function(file) -- if file:match "%.tl$" then -- table.insert(teal_files, file) -- end -- end) -- end return { statsfile = "luacov/luacov.stats.out", reporter = "html", reportfile = "luacov/luacov.report.html", include = { "spec", "src", }, exclude = { "lua_modules", "spec/tlconfig.lua", "src/awesome.d.tl/types", "types", }, -- runreport = true, -- For some reason, it makes my computer crash -- includeuntestedfiles = teal_files, includeuntestedfiles = true, }