plugins/neotest-ctest: add neotest-ctest adapter

This commit is contained in:
Frede Braendstrup 2025-08-19 21:34:37 +02:00 committed by Austin Horstman
parent 18a1b5126f
commit 4a7aac699b
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{
example = {
plugins = {
treesitter.enable = true;
neotest = {
enable = true;
adapters.ctest = {
enable = true;
settings = {
is_test_file.__raw = ''
function(file_path)
-- check if path has test in it
return string.match(file_path, "test") ~= nil
end
'';
};
};
};
};
};
}

View file

@ -11,6 +11,7 @@
adapters = {
bash.enable = true;
ctest.enable = true;
dart.enable = true;
deno.enable = true;
dotnet.enable = true;