googletest
googletest copied to clipboard
GoogleTest - Google Testing and Mocking Framework
### Describe the issue The smallest code does not compile (https://godbolt.org/z/znYd68E13) ```c++ #include "gtest/gtest.h" #include "nlohmann/json.hpp" void operator
I'm proposing to make the following compile ```c++ namespace user { struct A {}; template void PrintTo(const T& t, std::ostream* os) { ... } } testing::PrintToString(user::A{}); ``` which currently fails...
Enable PrintTo template overloads to be defined by the user A user cannot define a template for PrintTo which just takes the type directly. This is because gtest already defines...
### Describe the issue Based on the documentation: https://github.com/google/googletest/blob/v1.13.x/docs/advanced.md#teaching-googletest-how-to-print-your-values it seems that defining a `void PrintTo(const T&, std::ostream&)` function should teach googletest how to print custom values of type `T`...
In the latest 1.11.0 release failed SetUpTestSuite is not ignored anymore, but tests from the suite are still run after it fails. It is common for tests to rely on...
There's a mismatch between the real content of XML summaries and the documented format. 'Old' style XML output found in master/release-1.10.0: https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#logging-additional-information Actual output format for `RecordProperty() in release-1.10.0`
### Describe the issue A recent change https://github.com/google/googletest/commit/9c332145b71c36a5bad9688312c79184f98601ff will generate this warning: /home/vsts/work/1/s/deps/googletest/googletest/include/gtest/gtest-printers.h:532:9: error: implicit conversion from 'int32_t' (aka 'int') to 'float' may lose precision [-Werror,-Wimplicit-int-float-conversion] if (static_cast(val * mulfor6...
Avoid stack overflow in CreateDirectoriesRecursively by checking for end condition of RemoveFileName() Fixes #4262
### Describe the issue Asking google test to output to a non existing path, on a system with no notion of "./" being a path causes FilePath::CreateDirectoriesRecursively to end up...
According to 2019 updates of [GoogleTest Primer](http://google.github.io/googletest/primer.html), we have two naming change: * a **test-case** now becomes **test-suite** . * a **TEST_F()** now becomes a **test-case** . I totally agree...