test(minit): added support for passing tests to run to mini.test

This commit is contained in:
Folke Lemaitre 2025-10-02 23:08:03 +02:00
parent a21b7bf2e7
commit 59334064f8
No known key found for this signature in database
GPG Key ID: 9B52594D560070AB
1 changed files with 1 additions and 1 deletions

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",