https://github.com/dubzzz/gtest-light
Light version of GTest framework compatible with Online compilers like ideone, godbolt, codingame
https://github.com/dubzzz/gtest-light
codingame compiler gtest ideone online
Last synced: 8 months ago
JSON representation
Light version of GTest framework compatible with Online compilers like ideone, godbolt, codingame
- Host: GitHub
- URL: https://github.com/dubzzz/gtest-light
- Owner: dubzzz
- License: mit
- Created: 2017-01-18T22:47:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-13T17:49:06.000Z (over 9 years ago)
- Last Synced: 2025-10-13T15:03:40.480Z (8 months ago)
- Topics: codingame, compiler, gtest, ideone, online
- Language: C++
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GTest -light [](https://travis-ci.org/dubzzz/gtest-light)
_Unit-test your devs on Online compilers_
Light version of GTest framework compatible with Online compilers like ideone, godbolt, codingame
## Disclaimer
Please note the following before using this project:
- not supposed to replace GoogleTest
- only a very limited subset implemented
- code is not supposed to be really readable: short file in order to use easily in online compilers
## Requirements
Compiler with C++11 enabled.
## How to use it?
Simply copy-and-paste the content of gtest_light.hpp into your source file.
Resulting file might look like:
```cpp
/* Your code goes here */
/* Content of gtest_light.hpp */
/* Your GTest unit-tests */
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
int ret { RUN_ALL_TESTS() };
return ret;
}
```