Commit Graph

  • 155b337c93 Bump RE2 dependency to 2024-07-02.bcr.1 main Derek Mauro 2025-04-17 06:50:11 -07:00
  • e90fe24856 gmock-actions: add a missing conversion operator to WithArgsAction. Aaron Jacobs 2025-04-09 17:56:54 -07:00
  • 50a9511f50 gmock-actions: run clang-format. Aaron Jacobs 2025-04-09 15:33:04 -07:00
  • 52204f78f9 Remove obsolete references to LinuxThreads. Andy Getzendanner 2025-03-26 12:19:38 -07:00
  • 2ae29b52fd Add UnpackStructImpl for structs with 22 fields. Abseil Team 2025-03-21 05:44:17 -07:00
  • c2ceb2b09b Fix a typo Tommy Chiang 2025-03-21 03:03:29 -07:00
  • e7b26b7246 Add a non-'const' overload for the function invoked by the IgnoreArgs action wrapper. Abseil Team 2025-03-20 10:55:26 -07:00
  • 3af834740f Improve the failure messages of ElementsAre(), ElementsAreArray(), etc. Zhanyong Wan 2025-03-18 09:41:34 -07:00
  • 4902ea2d7c Clarify the polymorphic matcher concept and explain how to define a composite matcher. Zhanyong Wan 2025-03-11 12:03:38 -07:00
  • 4ee4b17bf5 Allow DistanceFrom() to use user-defined abs() by default. Zhanyong Wan 2025-03-11 06:58:07 -07:00
  • 0bdccf4aa2 Add a DistanceFrom() matcher for general distance comparison. Zhanyong Wan 2025-03-07 09:53:19 -08:00
  • e88cb95b92 Add a testing::ConvertGenerator overload that accepts a converting functor. This allows the use of classes that do not have a converting ctor to the desired type. Abseil Team 2025-03-04 10:39:43 -08:00
  • 24a9e940d4 Try to warn the user when test filters do not match any tests Derek Mauro 2025-02-28 11:35:40 -08:00
  • 72189081ca googletest: Add testonly alias of :gtest for testonly cc_libraries to use. pizzud 2025-02-27 11:48:34 -08:00
  • 144d335538 Add UnpackStructImpl for structs with 21 fields. Abseil Team 2025-02-27 08:35:23 -08:00
  • e5669fdffc Output to the test warning file if no tests are linked. Derek Mauro 2025-02-26 11:56:21 -08:00
  • 54501746a6 Adds support for a --gtest_fail_if_no_test_linked flag to fail the test program if no test case is linked in (a common programmer mistake). Zhanyong Wan 2025-02-24 13:17:47 -08:00
  • 3fbe4db9a3 GoogleTest C++17 cleanups * Use [[nodiscard]] instead of GTEST_MUST_USE_RESULT_ * Use [[maybe_unused]] instead of GTEST_INTERNAL_ATTRIBUTE_MAYBE_UNUSED * Use [[deprecated]] instead of GTEST_INTERNAL_DEPRECATED * Remove GTEST_INTERNAL_NEED_REDUNDANT_CONSTEXPR_DECL Derek Mauro 2025-02-21 07:33:10 -08:00
  • a6ce08abf7 Property: Promote note to warning Jesse Rosenstock 2025-02-17 00:59:00 -08:00
  • c00fd25b71 Require C++17 Derek Mauro 2025-02-12 09:43:29 -08:00
  • 4a00a24fff Add SaveArgByMove Abseil Team 2025-02-10 10:21:36 -08:00
  • a866428a78 Update docs for v1.16.x branch Derek Mauro 2025-02-07 09:40:19 -08:00
  • 6910c9d916
    Prepare for v1.16.0 (#4721) v1.16.0 v1.16.x Derek Mauro 2025-02-07 11:04:56 -05:00
  • 445e9bd8d0 Update GoogleTest deps in preparation for release Derek Mauro 2025-02-06 17:39:47 -08:00
  • e5443e5c65 Remove empty glob pattern, which is now an error. Derek Mauro 2025-02-06 13:51:49 -08:00
  • e235eb34c6 Pull Regexp syntax out of Death test section in advanced.md Abseil Team 2025-01-31 10:22:30 -08:00
  • 66d7401378 Fix extended regular expressions reference URL in advanced.md Abseil Team 2025-01-31 09:44:42 -08:00
  • b4aae50ce1 Export testsuite properties as XML elements, not attributes. Abseil Team 2025-01-30 16:00:55 -08:00
  • 2b6b042a77 Cast mutable lvalue references to const from testing::ResultOf Abseil Team 2025-01-16 12:50:32 -08:00
  • e4ece4881d Enable safe matcher casts from Matcher<const T&> to Matcher<T>. Abseil Team 2025-01-15 09:16:21 -08:00
  • 504ea69cf7 Document unexpected interaction with death test error code and gmock. Abseil Team 2025-01-09 10:42:28 -08:00
  • 4bbf80823c Add UnpackStructImpl for structs with 20 fields. Abseil Team 2025-01-08 06:37:41 -08:00
  • 7d76a231b0 gtest: Output a canned test case for test suite setup / teardown failures in XML/JSON Abseil Team 2024-12-26 15:30:16 -08:00
  • e54519b094 Put the fake Fuchsia SDK in a module extension Abseil Team 2024-12-23 13:32:38 -08:00
  • f3c355f9dd the public version already has the const qualifier Abseil Team 2024-12-16 08:39:37 -08:00
  • 79219e26e0 Update the links to ISTQB glossary. Abseil Team 2024-12-11 07:59:35 -08:00
  • d122c0d435 Add support for printing C++20 std::*_ordering types to gtest. Adds feature test macro for C++20 <compare> header, a pretty-printer, and tests. Inexplicably, these types aren't enums, so can't be handled with a switch. Abseil Team 2024-12-10 11:22:24 -08:00
  • 35d0c36560 Merge pull request #4662 from asoffer:patch-1 Copybara-Service 2024-11-20 09:37:33 -08:00
  • 7927f8e93d
    Fix documentation bug. Andy Soffer 2024-11-15 10:19:57 -05:00
  • d144031940 Fixing a typo in the documentation of IsSubsetOf(). Abseil Team 2024-11-04 07:25:46 -08:00
  • 1204d63444 Remove mention of using ASSERT_... statements inside custom matcher definitions. Abseil Team 2024-10-31 18:03:18 -07:00
  • 5ed2186395 Use FAIL() in GTEST_SKIP() documentation Peter Boström 2024-10-27 23:56:39 -07:00
  • df1544bcee Avoid creating std::vector<const T> in UnorderedElementsAreArrayMatcher and others. Abseil Team 2024-10-16 06:39:05 -07:00
  • 62df7bdbc1 This change adjusts how ASSERT_NEAR and EXPECT_NEAR treats infinity, such that ASSERT_NEAR(inf, inf, 0) passes. This makes the behavior more consistent with ASSERT_EQ(inf, inf) which succeeds. Abseil Team 2024-10-14 10:12:38 -07:00
  • 71815bbf7d Automated Code Change Abseil Team 2024-10-04 20:53:30 -07:00
  • a1e255a582 Optional(): Add support for std::optional<>-like types lacking bool conversion. Abseil Team 2024-10-01 09:32:16 -07:00
  • 6dae7eb4a5 Use matcher's description in AnyOf when matcher has no explanation. Abseil Team 2024-09-16 14:48:46 -07:00
  • 0953a17a42 Automated Code Change Abseil Team 2024-08-29 08:16:49 -07:00
  • ff233bdd4c Update main to point to 1.15.2 patch release Derek Mauro 2024-08-01 06:34:07 -07:00
  • b514bdc898
    Update version strings to 1.15.2 (#4583) v1.15.2 v1.15.x Derek Mauro 2024-07-31 09:34:46 -04:00
  • 075196ca06
    Remove auto-detection of Python toolchain from MODULE.bazel (#4582) v1.15.1 Derek Mauro 2024-07-30 20:25:53 -04:00
  • 3e3b44c300 Remove auto-detection of Python toolchain from MODULE.bazel since it affects downstream users Derek Mauro 2024-07-30 13:17:08 -07:00
  • ffa31aec1c Directly include gmock.h and gtest.h in gmock-matchers tests. Abseil Team 2024-07-30 09:02:44 -07:00
  • 5bcb2d78a1 Use matcher's description in AllOf if matcher has no explanation. Abseil Team 2024-07-24 08:07:22 -07:00
  • 352788321f gmock-actions: make DoAll convert to OnceAction via custom conversions. Aaron Jacobs 2024-07-23 19:43:05 -07:00
  • 57e107a10e Run clang-format. Aaron Jacobs 2024-07-23 03:56:40 -07:00
  • cee1ba1f24 Change the Bazel build to use the canonical repo names used by Bzlmod and the Bazel Central Registry Derek Mauro 2024-07-20 23:08:58 -07:00
  • 9ff2450a56 Update GoogleTest Bazel quickstart for Bzlmod Derek Mauro 2024-07-16 06:57:41 -07:00
  • b62593aceb Update main branch to reflect the release of 1.15.0 Derek Mauro 2024-07-16 06:56:59 -07:00
  • d49a665484 Use matcher's description in AllOf if matcher has no explanation. Abseil Team 2024-07-16 05:22:04 -07:00
  • 417158b8bc Use matcher's description in AllOf if matcher has no explanation. Abseil Team 2024-07-15 16:39:22 -07:00
  • e397860881
    Prepare for v1.15.0 (#4574) v1.15.0-pre v1.15.0 Derek Mauro 2024-07-15 13:46:49 -04:00
  • 7321f950df Update dependency versions in preparation for release Derek Mauro 2024-07-15 07:50:21 -07:00
  • 4b21f1abdd README.md: Remove outdated notes about continuous integration and documentation Derek Mauro 2024-07-12 10:30:28 -07:00
  • b4aaf97d8f Workaround GCC 12 -Wrestrict false-positive Derek Mauro 2024-07-10 09:14:40 -07:00
  • 3ef16ef8b3 Fix the documentation that erroneously says you can use short versions of help flags Derek Mauro 2024-07-09 12:58:46 -07:00
  • 34ad51b3dc Add a bounds check to protect against an empty vector from GetArgs(), which can cause an out of bounds access in GetCurrentExecutableName(). One way this can happen is if the user forgets to call InitGoogleTest(). Abseil Team 2024-06-28 11:12:00 -07:00
  • 1d17ea141d Skip the predicate on SIGSEGV in death-test on Android builds with API level <= 21. Abseil Team 2024-06-13 11:59:10 -07:00
  • a7f443b80b Mention the optional third argument to TYPED_TEST_SUITE Abseil Team 2024-05-28 07:41:56 -07:00
  • 305e5a238b Update GoogleTest CI Docker image to use Clang 19, GCC 14, and CMake 3.29.3 Derek Mauro 2024-05-24 11:12:50 -07:00
  • 9b4993ca7d Change GoogleTest flag removal to not read beyond the end of the array to the NULL terminator. #4532 says ASAN complains about this on some platforms, although it is not clear if ASAN or the platform implementation is incorrect about accessing the terminating NULL. Derek Mauro 2024-05-21 12:07:45 -07:00
  • c8393f8554 Print mismatches for UnorderedElements() of different sizes. Abseil Team 2024-05-20 07:35:58 -07:00
  • 33af80a883 Make EXPECT_DEATH_IF_SUPPORTED work with matchers Abseil Team 2024-05-13 07:16:07 -07:00
  • fa6de7f438 Merge pull request #4527 from abhina-sree:abhina/add_zos Copybara-Service 2024-05-06 13:31:42 -07:00
  • 2d684efe87 Use std::forward on GoogleTest matcher arguments Abseil Team 2024-05-06 09:48:05 -07:00
  • 2d16ed055d Merge pull request #3991 from pgroke-dt:default-enable-thread-support-for-Solaris-AIX-zOS Copybara-Service 2024-05-03 08:51:23 -07:00
  • 2954cb8d87 Add example using EXPECT statement in custom matcher Abseil Team 2024-05-02 16:06:19 -07:00
  • 5035ef3473 add zos for death test support Abhina Sreeskantharajan 2024-05-02 09:54:31 -04:00
  • fbc93e61c4
    Merge branch 'main' into default-enable-thread-support-for-Solaris-AIX-zOS Paul Groke 2024-05-02 13:27:54 +02:00
  • d83fee138a Adds "IWYU pragma: export" to gtest-param-util.h Abseil Team 2024-04-25 09:49:37 -07:00
  • 5a37b517ad Use [[maybe_unused]] when it is available to avoid -Wused-but-marked-unused warnings Derek Mauro 2024-04-16 13:15:51 -07:00
  • 5197b1a8e6 Modify example in the primer to match Testing FAQ. Krzysztof Kosiński 2024-04-12 13:18:22 -07:00
  • b1a777f319 Fix https://github.com/google/googletest/issues/4423 Abseil Team 2024-04-10 01:02:58 -07:00
  • 3d73dee972 Merge pull request #4508 from davidmatson:addJsonSkipped Copybara-Service 2024-04-08 13:02:42 -07:00
  • f10e11fb27 No external change Abseil Team 2024-04-05 09:39:12 -07:00
  • 0af976647f [gtest] Use std::index_sequence and friends instead of rolling our own Lawrence Wolf-Sonkin 2024-04-04 12:37:50 -07:00
  • 61db1e1740 Merge pull request #4505 from to01z:add-winapi-partition-games-support Copybara-Service 2024-04-03 13:59:49 -07:00
  • d3a29ff624 Fix a race condition between the Watcher thread and the main thread during program exit Derek Mauro 2024-04-03 13:21:06 -07:00
  • f16770d63d Add skipped messages to JSON output (fixes #4507). David Matson 2024-03-28 20:09:35 -07:00
  • ec7b38672c Delete the unofficial GitHub actions tests. We do not look at these. Derek Mauro 2024-04-03 07:05:10 -07:00
  • a2f106c7e2 Merge pull request #4503 from davidmatson:fixTypo Copybara-Service 2024-04-02 16:50:56 -07:00
  • c4fec74514 Merge pull request #4502 from davidmatson:fixStreamHelpTextOs Copybara-Service 2024-04-02 07:53:31 -07:00
  • 77afe8e014 Automated Code Change Abseil Team 2024-03-30 01:53:46 -07:00
  • a7678dd0db Revert changes to googletest-port-test.cc Troels Gram 2024-03-28 22:05:08 -07:00
  • f7a6bba24c Fix typo in comment. David Matson 2024-03-28 17:34:21 -07:00
  • 53ee0fc0b2 Fix help text for stream_result_to flag. David Matson 2024-03-28 16:59:37 -07:00
  • f1269cc220 Add support for compiling GoogleTest for Xbox Troels Gram 2024-03-23 22:53:35 -07:00
  • eff443c6ef Merge pull request #4490 from memdo:main Copybara-Service 2024-03-18 13:34:04 -07:00
  • a1a608348e Add colored output support for Alacritty Mustafa Berkay Düzenli 2024-03-16 00:28:30 +03:00
  • c231e6f5b1 Add test for move-only type in Action signature Abseil Team 2024-03-14 23:59:31 -07:00