https://github.com/jafarabdi/neotest-gtest
Neotest adapter for projects using gtest and cmake
https://github.com/jafarabdi/neotest-gtest
Last synced: 4 months ago
JSON representation
Neotest adapter for projects using gtest and cmake
- Host: GitHub
- URL: https://github.com/jafarabdi/neotest-gtest
- Owner: JafarAbdi
- License: mit
- Created: 2022-07-30T14:58:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-29T22:15:57.000Z (almost 3 years ago)
- Last Synced: 2025-01-16T06:58:32.708Z (6 months ago)
- Language: Lua
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# neotest-gtest
[](https://github.com/JafarAbdi/neotest-gtest/actions/workflows/formant.yaml)
This plugin provides a [gtest](https://www.google.com/search?q=gtest) adapter the [neotest](https://github.com/nvim-neotest/neotest) framework.

Requires both [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) for the C++ parser and [neovim-cmake](https://github.com/Shatur/neovim-cmake) for building/running tests.
## Configuration
```lua
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