Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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