googletest
googletest copied to clipboard
GoogleTest - Google Testing and Mocking Framework
Hello! I'd like to use cmake FetchContent to download googletest sources and clang-cl to compile it. But in this case gtest include directory was not added to gtest target. Seems...
### Describe the issue I cannot link the gtest. Linker error. ### Steps to reproduce the problem My conanfile: ``` [requires] boost/1.81.0 gtest/1.14.0 [generators] CMakeDeps CMakeToolchain [options] boost/*:without_log=False ``` My...
**Why do we need this feature?** In my unittests I follow the AAA pattern (Arrange, Act, Assert), also I like to use test fixtures for moving common arrange steps into...
### Describe the issue I'm suddenly getting the following crash on tests that hit `SUCCEED` on Windows, specifically on GitHub Actions: ``` unknown file: error: SEH exception with code 0xc0000005...
### Describe the issue Consider the following example ```C++ MATCHER(MatchSomething, "") { *result_listener
Rotten Green Tests are tests that have assertions that did not execute, even though they were contained in a test method that has a Pass result. This patch detects and...
It returned the trailing backslash if the current working directory was a root directory. It should be consistent w/ all cases. [_getcwd, _wgetcwd](https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/getcwd-wgetcwd?view=msvc-170) > `_getcwd` returns a string that represents...
I added GoogleTest to my project by following the `Setup` section of the [Building with CMake](https://google.github.io/googletest/quickstart-cmake.html) documentation page in order to add unit tests. The issue is that the example...
### Describe the issue When running tests using `--gtest_brief=1`, the messages produced by skipped tests are printed. The help for `gtest_brief` suggests that only test _failures_ should be displayed: ```console...
### Describe the issue Using `MockFunction` to mock a lambda function with deducing this self parameter gives a compile error with gcc 14.1 on Ubuntu 24.04 ``` test.cpp: In member...