feat: custom test file detection

See #3
This commit is contained in:
Rónán Carrigan
2022-06-14 10:16:58 +01:00
parent e8ce1d3047
commit de234d600e
2 changed files with 10 additions and 7 deletions

View File

@@ -26,6 +26,12 @@ require("neotest").setup({
-- Runner to use. Will use pytest if available by default.
-- Can be a function to return dynamic value.
runner = "pytest",
-- Returns if a given file path is a test file.
-- NB: This function is called a lot so don't perform any heavy tasks within it.
is_test_file = function(file_path)
...
end,
})
}