https://github.com/klugier/uppgoogletest
GoogleTest (GoogleTest & GoogleMock) distributed source package for Upp platform.
https://github.com/klugier/uppgoogletest
distributed mocking testing ultimatepp upp
Last synced: 4 months ago
JSON representation
GoogleTest (GoogleTest & GoogleMock) distributed source package for Upp platform.
- Host: GitHub
- URL: https://github.com/klugier/uppgoogletest
- Owner: klugier
- License: bsd-3-clause
- Created: 2021-02-14T17:29:48.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T10:23:20.000Z (over 3 years ago)
- Last Synced: 2025-10-10T12:32:15.060Z (8 months ago)
- Topics: distributed, mocking, testing, ultimatepp, upp
- Language: C++
- Homepage:
- Size: 484 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# UppGoogleTest
UppGoogleTest is a distributed source nest for [U++](https://www.ultimatepp.org/) platform that wraps [GoogleTest](https://github.com/google/googletest) a popular C++ unit testing framework. The package can be directly downloade using UppHub.
UppGoogleTest provieds two following package:
- **plugin/gtest** - the wrapepr for GoogleTest library.
- **plugin/gmock** - the wrapper for GoogleMock library.
The current package version is basing on GoogleTest [v1.12.1](https://github.com/google/googletest/releases/tag/release-1.12.1).
## Examples
To simplify the example, let's test basic String from Upp Core package:
```cpp
#include
#include
class StringTest : public testing::Test {}
TEST_F(StringTest, TestConstruction)
{
Upp::String empty_string;
EXPECT_EQ(0, empty_string.GetCount());
EXPECT_TRUE(empty_string.IsEmpty());
}
TEST_APP_MAIN {}
```
More examples can be found under examples directory.
## TheIDE integration
UppGoogleTest provides macros that extends TheIDE capabilities. Directly from Macro -> GoogleTest menu you can execute following operations:
- **Launch all test** - launches all available tests in the project (CTRL+R)
- **Launch test** - launches test at code editors cursor line (CTRL+E)