googletest
googletest copied to clipboard
GoogleTest - Google Testing and Mocking Framework
### Does the feature exist in the most recent commit? No. ### Why do we need this feature? The commit (https://github.com/google/googletest/commit/64be1c79fa2cea015d816687120878a110775351) added logic to delete test environments during normal test...
- Adjusted expected string output in the test cases to match platform-specific float representations. - Verified that the updated test passes on macOS (x86_64). - This prevents false test failures...
### Describe the issue I'm using this well known trick of turning assertion failures in subroutines into exceptions documented at https://google.github.io/googletest/advanced.html#asserting-on-subroutines-with-an-exception ```cpp class ThrowListener : public testing::EmptyTestEventListener { void OnTestPartResult(const...
Prevents messages from skipped tests being displayed when the `--gtest_brief` flag is set. Resolves #4548 Using this example: ```cpp // test.cpp #include TEST(Test, TwoAndTwoIsFour) { GTEST_SKIP(); EXPECT_EQ(2 + 2, 4);...
### Does the feature exist in the most recent commit? No. ### Why do we need this feature? Documentation should be clear. ### Describe the proposal. In "Basic Concepts" in...
### Describe the issue This example would fail when built with `g++ -Werror -Wshadow=compatible-local`: ``` class MyCodeTest : public ::testing::TestWithParam {}; TEST_P(MyCodeTest, Example) {} INSTANTIATE_TEST_SUITE_P( MyCode, MyCodeTest, ::testing::Values(0), [](const ::testing::TestParamInfo&...
Update Cmake to 3.6 because Compatibility with CMake < 3.5 has been removed
Came across this due to a C26461 warning of MSVC: > The pointer argument 'ss' for function 'testing::internal::StringStreamToString' can be marked as a pointer to const (con.3). As the method...
### Describe the issue `__builtin_trap()` is considered a noreturn function and therefore you are not able to continue debugging after the first failure. Clang has [`__builtin_debugtrap`](https://clang.llvm.org/docs/LanguageExtensions.html#builtin-debugtrap) with the desired semantics....
Used std::invoke in PropertyMatcher to support default arguments All tests pass, including a new test for std::source_location.