Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thombashi/gtest-project-template
C++ test project template using Google Test.
https://github.com/thombashi/gtest-project-template
cpp11 google-test project-template template-repository unit-testing
Last synced: 3 months ago
JSON representation
C++ test project template using Google Test.
- Host: GitHub
- URL: https://github.com/thombashi/gtest-project-template
- Owner: thombashi
- License: mit
- Created: 2016-10-02T12:44:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-14T02:08:20.000Z (over 7 years ago)
- Last Synced: 2024-05-17T00:01:47.645Z (9 months ago)
- Topics: cpp11, google-test, project-template, template-repository, unit-testing
- Language: C++
- Homepage:
- Size: 30.3 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gtest-project-template
C++ test project template using [Google Test](https://github.com/google/googletest).## Included
- Google Test
- [Google Test](https://github.com/google/googletest) 1.8.0 (as a submodule)
- Basic test case templates
- Basic Google Test fixtures
- CMake
- ``CMakeLists.txt``# Installation
```
git clone https://github.com/thombashi/gtest-project-template.git --recursive
```## CMake/Compiler wrapper tool (optional)
[cmakew](https://github.com/thombashi/cmakew)```
pip install cmakew --upgrade
```## Usage
### Environment
- Fedora 24
- gcc-c++ 6.3.1
- Python 3.6.1### Build test cases
```
$ cd gtest-project-template
$ cp -ar test_template/ test/
Written test cases
$ cmakew test
```# Dependency
## Mandatory
- [googletest](https://github.com/google/googletest.git)
- [cmake](https://cmake.org/download/)
- Compiler: ``Visual Studio``, ``gcc``, etc.