Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jafarabdi/neotest-gtest
Neotest adapter for projects using gtest and cmake
https://github.com/jafarabdi/neotest-gtest
Last synced: about 2 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-29T22:15:57.000Z (over 2 years ago)
- Last Synced: 2024-04-20T00:53:38.022Z (9 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
[![Format](https://github.com/JafarAbdi/neotest-gtest/actions/workflows/formant.yaml/badge.svg)](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.
![Screenshot from 2022-07-30 23-56-52](https://user-images.githubusercontent.com/16278108/181995956-0459302d-f050-463b-9258-7a783c16ff05.png)
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