neotest-gtest
This plugin provides a gtest adapter the neotest framework.
Requires both nvim-treesitter for the C++ parser and neovim-cmake for building/running tests.
Configuration
require('neotest-gtest').setup({
test_path_pattern = {".*_test%.cpp", ".*_test%.cc"}, -- The path pattern to detect test files
})
Acknowledgements
- Reporting test results was copied from https://github.com/alfaix/neotest-gtest