test(minit): added support for passing tests to run to mini.test
Some checks failed
Community / community (push) Has been skipped
Docs / docs (push) Has been skipped
CI / ci (push) Has been cancelled

This commit is contained in:
Folke Lemaitre 2025-10-02 23:08:03 +02:00
commit 59334064f8
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -152,7 +152,7 @@ function M.minitest.setup(opts)
opts = {
collect = {
find_files = function()
return vim.fn.globpath("tests", "**/*_spec.lua", true, true)
return #_G.arg > 0 and _G.arg or vim.fn.globpath("tests", "**/*_spec.lua", true, true)
end,
},
-- script_path = "tests/minit.lua",