Skip to content

Commit

Permalink
enh: run test for all files
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-souza committed Sep 26, 2024
1 parent b487220 commit 6fbc872
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/shared/tests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ end
function M.test()
local files = vim.fs.find(
is_test_file,
{ type = "file", path = vim.fn.getcwd() .. "/lua" }
{ type = "file", path = vim.fn.getcwd() .. "/lua", limit = math.huge }
)

for _, file in ipairs(files) do
local relative_path = file:gsub(".*/ollero.nvim/lua/", "")
local require_path = relative_path:gsub(".lua", ""):gsub("/", ".")

require(require_path)
print(".")
end
Expand Down

0 comments on commit 6fbc872

Please sign in to comment.