Home » Developing U++ » UppHub » Google Test and Google Mocks updated to version 1.10.0 (October 2019) (New version)
Google Test and Google Mocks updated to version 1.10.0 (October 2019) [message #54621] |
Sat, 22 August 2020 00:28 |
|
Klugier
Messages: 1076 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I would like to inform you that Google Test and Google Mocks were updated to version 1.10.0. The main feature I noticed, so far is support for new mocking syntax (much more programmer friendly):
class Car {
public:
virtual ~Car() = default;
virtual void OpenHood() = 0;
virtual String ReadRegistrationNumbers() const = 0;
};
class MockCar final : public Car {
public:
MOCK_METHOD(void, OpenHood, (), (override));
MOCK_METHOD(String, ReadRegistrationNumbers, (), (const, override));
};
For more information please visit following documentation site). Moreover, it seems that GTest is now free of memory leak that required custom patch in previous version of the plugin.
I updated our internal examples, so you can compile it and test it. You can see their code directly in your browser (via GitHub):
- GoogleTestExample
- GoogleMockExample
Moreover, if you miss my previous posts. These packages offers macro integration. It means that you can execute tests directly to TheIDE terminal.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Sat, 22 August 2020 00:32] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat May 04 10:42:47 CEST 2024
Total time taken to generate the page: 0.03092 seconds
|