summaryrefslogtreecommitdiffstats
path: root/docs
Commit message (Collapse)AuthorAgeFilesLines
* Fix the documentation that erroneously says you can use short versionsDerek Mauro2024-07-091-1/+1
| | | | | | | | | of help flags Fixes #4564 PiperOrigin-RevId: 650730047 Change-Id: I3a52aca490338066c607e34ab20c827bfde5090d
* Mention the optional third argument to TYPED_TEST_SUITEAbseil Team2024-05-281-0/+17
| | | | | PiperOrigin-RevId: 637896001 Change-Id: Ia3a61ceec4b842e864a0cdfad13e9897bf0ecaaa
* Add example using EXPECT statement in custom matcherAbseil Team2024-05-021-3/+32
| | | | | | | | | `EXPECT_...` statements can be used inside matcher definitions – this is an important option that is glossed over in this documentation. Users should definitely be aware of this option, since writing custom messages to the `result_listener` can be very cumbersome (and unnecessary) sometimes. This change adds a relevant example and includes the associated error message it provides on failure. PiperOrigin-RevId: 630206661 Change-Id: Idee00ba77ce3c1245597aa082f9cd0efff16aceb
* Modify example in the primer to match Testing FAQ.Krzysztof Kosiński2024-04-121-9/+8
| | | | | | | The CtorVsSetUp section of the FAQ says that constructors and destructors should be preferred over SetUp() and TearDown(), because they will automatically chain up to the fixture's base class, whereas for methods the user must remember to add the chaining manually. PiperOrigin-RevId: 624273474 Change-Id: Ida41aae193d417eaf996587c7ae1a0099a8cab32
* Fix https://github.com/google/googletest/issues/4423Abseil Team2024-04-101-2/+4
| | | | | PiperOrigin-RevId: 623407029 Change-Id: I3559f11e1c18a4f151d521c6ac115c358a11b40c
* Revert incorrect update.Abseil Team2024-02-221-2/+2
| | | | | PiperOrigin-RevId: 609387046 Change-Id: I03e42c39011fc7e9715f896591a44ebede1933b2
* Add anchor for expectation ordering noteAbseil Team2024-02-131-0/+2
| | | | | PiperOrigin-RevId: 606736565 Change-Id: Ifad0b34e1deeec1374377d733375c6210896d0d3
* Merge pull request #4435 from kaswhy:mainCopybara-Service2024-01-291-5/+15
|\ | | | | | | | | PiperOrigin-RevId: 602385832 Change-Id: I755dae5707e98b6157930a74de90a8e19ef17603
| * Docs: Add mention of `gtest_recreate_environments_when_repeating`refs/pull/4435/headkaswhy2024-01-231-11/+13
| |
| * Docs: add conditions for calling SetUp and TearDown()kaswhy2024-01-111-8/+12
| |
| * Docs: add conditions for calling TearDown()kaswhy2023-12-281-3/+6
| |
* | Add a note about argv requiring NULL termination.Abseil Team2024-01-091-1/+3
|/ | | | | | Fixes: #4434 PiperOrigin-RevId: 596960654 Change-Id: I1f70cc0801764fe0328030c46254f82eb9893a49
* Minor documentation correction.Abseil Team2023-12-221-2/+2
| | | | | PiperOrigin-RevId: 593126348 Change-Id: I78e12ab5dd2e5acc69b21250bdb04e62990b6309
* Fix broken links in primer.mdDerek Mauro2023-12-191-2/+2
| | | | | | | Closes #4432 PiperOrigin-RevId: 592335698 Change-Id: I9859451981f58f1426255067d702a0767718b1d5
* s/::testing::/testing::/ in test documentation outside of using statements ↵Abseil Team2023-10-181-7/+7
| | | | | | | to align with best practice PiperOrigin-RevId: 574377544 Change-Id: I0ca69a3bf14cc1aab75784eba220a48bf50cef04
* gmock_cook_book: Document `DoAll`'s return type requirementDino Radakovic2023-10-031-0/+6
| | | | | | | | The requirement is vaguely documented by "Only the return value of the last action in the sequence will be used.". However, this can be misleading, as users could potentially expect default-constructed values to be returned in absence of a matching return type. PiperOrigin-RevId: 570450839 Change-Id: Ibd98a6e6b2aaf2a8cfc15ed6aeab442526eab98e
* GoogleTest FAQ: minor punctuation fixesrefs/pull/4362/headMichael Hirshleifer2023-09-141-15/+15
| | | | | PiperOrigin-RevId: 565411290 Change-Id: I57e94c679183e39eec2a2835f330b52fc9302767
* Remove Googletest FAQ entry for obsolete `ProtocolMessageEquals` and ↵Michael Hirshleifer2023-09-141-21/+0
| | | | | | | | | | `ProtocolMessageEquiv` * These long-dead variants of the proto matchers don't exist in the current version of Googletest. * No evidence of external usage: [the only external references I see](https://www.google.com/search?q=%22protocolmessageequals%22+OR+%22protocolmessageequals%22) are copies of this guide. Possibly they were already removed by the time Googletest was publicly released. PiperOrigin-RevId: 565358401 Change-Id: I61379b7333fa8ee19cd5520caedf2c539f54c2d7
* changed http to httpsrefs/pull/4349/headsthd2023-08-222-5/+5
|
* Merge pull request #4343 from sthd:http-to-httpsCopybara-Service2023-08-221-3/+3
|\ | | | | | | | | PiperOrigin-RevId: 559151399 Change-Id: I8eb2c7c5222d0fd0935db531a0abe5792633fe7e
| * Update advanced.mdElior Schneider2023-08-201-1/+1
| | | | | | http to https
| * Changed 2 public links from http to httpssthd2023-08-111-2/+2
| |
| * Changed 3 public links from http to httpssthd2023-08-111-3/+3
| |
* | googletest: Replace http with https in links to docsDino Radakovic2023-08-222-4/+4
|/ | | | | | | This is a prerequisite for #4341 PiperOrigin-RevId: 559132807 Change-Id: Iadc961913e0ff107c5333dae17be5f8638663836
* Specify SetUpTestSuite is required to be public.Abseil Team2023-08-101-4/+4
| | | | | PiperOrigin-RevId: 555578256 Change-Id: I9366fc99ae953c29e468fcddb4be203c9c05661b
* Make references to `#include`s consistent across docsDino Radakovic2023-08-073-4/+3
| | | | | PiperOrigin-RevId: 554561504 Change-Id: Ia02ab6ac646bf6637d6f500a4aaedd14e0a04798
* Adjust includes to use <> instead of "", consistent with quickstart pages.Abseil Team2023-07-285-7/+7
| | | | | | | | | | Right now, gtest documentation uses different #include syntax. The quickstart pages (e.g., http://google.github.io/googletest/quickstart-bazel.html#create-and-run-a-binary) are checked in with `#include <gtest/gtest.h>` However, other documentation (such as the primer) uses `#include "gtest/gtest.h"` (e.g., https://google.github.io/googletest/primer.html#writing-the-main-function). PiperOrigin-RevId: 551878641 Change-Id: Iab93cc1da3ef4870a07b624071b75d6e9d3568c1
* Fix typo in gmock_cook_book.mdrefs/pull/4317/headAnton Sosnin2023-07-191-2/+2
|
* Change `::testing` to `testing` in Testing Reference docAbseil Team2023-06-291-35/+35
| | | | | PiperOrigin-RevId: 544466397 Change-Id: Icb4d5fae38361cd75d47f908886831696eb2b1c9
* Update code examples in the gMock Cookbook following C++ best practices.Abseil Team2023-06-221-22/+24
| | | | | PiperOrigin-RevId: 542564354 Change-Id: Ia3307f13f845c662c88fb7303112f41ef8c56b28
* cmake: Raise min to 3.6refs/pull/4288/headJuan Ramos2023-06-191-9/+5
| | | | | | | | | | | From the CMake 3.27 release notes: Compatibility with versions of CMake older than 3.5 is now deprecated and will be removed from a future version. Calls to cmake_minimum_required() or cmake_policy() that set the policy version to an older value now issue a deprecation diagnostic. This PR also removes manually setting policy CMP0048. This is redundant since the CMake min is already 3.X
* internal g3doc documentation change.Abseil Team2023-06-091-1/+1
| | | | | PiperOrigin-RevId: 539134110 Change-Id: I28041f77e18bc67aa0ffabdc7205e350deed22c8
* Copy supported platforms from README onto ↵Dino Radakovic2023-06-011-33/+6
| | | | | | | https://google.github.io/googletest/platforms.html PiperOrigin-RevId: 537016664 Change-Id: Ie62891a1061465a009b90feba0ccb91d85591160
* Provide example for setting C++ language standard in GoogleTest's Bazel ↵Dino Radakovic2023-05-311-1/+8
| | | | | | | | | | | quickstart and readme. An equivalent for CMake was merged in https://github.com/google/googletest/commit/aa99ce5a0db4215bb8e2cda3ee68b6b8d4896815 Fixes #4254 PiperOrigin-RevId: 536759641 Change-Id: I8400064a24e0d78f17a0720046f505efa1167b4f
* Add CXX_STANDARD_REQUIRED to CMake quickstartrefs/pull/4250/headShlomi Nissan2023-05-211-0/+1
|
* Update gMock Cookbook to reflect deprecation of testing::ByMoveAbseil Team2023-04-171-18/+13
| | | | | PiperOrigin-RevId: 524868227 Change-Id: I702ede27570e3d3f06d534d6ccf8b39689105d07
* Update naming to "GoogleTest" in the GoogleTest Primer.Abseil Team2023-03-291-34/+34
| | | | | PiperOrigin-RevId: 520409541 Change-Id: I75a0b8615ece923137d4f5dcdb915f38e4c3b1b2
* Replace `const char*` with `absl::string_view` as the latter is preferred.Abseil Team2023-03-241-4/+4
| | | | | PiperOrigin-RevId: 519122695 Change-Id: I7dcf969d15d26ccc4b376e3ab6db7f4c08c7386f
* Revise documentation to include AbslStringifyPhoebe Liang2023-03-201-88/+111
| | | | | PiperOrigin-RevId: 518039451 Change-Id: Ife548d0f83266746ce1981bea31e70e6b43027c9
* Merge pull request #4158 from VuPhamVan:mainCopybara-Service2023-02-281-1/+1
|\ | | | | | | | | PiperOrigin-RevId: 512959074 Change-Id: Ifbc63077aad573d4496a837f2f57584192573820
| * Fix typorefs/pull/4158/headVũ Phạm2023-02-191-1/+1
| |
* | Rephrase the description of TEST_F() arguments for clarity.Abseil Team2023-02-281-4/+4
| | | | | | | | | | PiperOrigin-RevId: 512937964 Change-Id: Ifa6369a80dc7d8efe60511417496d58317cfc28d
* | Merge pull request #4143 from iwsfutcmd:patch-1Copybara-Service2023-02-271-0/+1
|\ \ | | | | | | | | | | | | PiperOrigin-RevId: 512696294 Change-Id: I6c135ca295e663df48db5b32bad4639d0c0c0774
| * | Update testing.mdrefs/pull/4143/headBen Yang2023-02-021-0/+1
| | | | | | | | | Fixed Parameter Generator table
* | | Reformat to current g3doc style guide. No content changes.Abseil Team2023-02-271-11/+11
| | | | | | | | | | | | | | | PiperOrigin-RevId: 512681427 Change-Id: I88b22d82430ed145b8342747adf300f3e734d43b
* | | Added a missing semicolon for GTEST_FLAG_SET code snippet.Abseil Team2023-02-231-1/+1
| |/ |/| | | | | | | PiperOrigin-RevId: 511858980 Change-Id: I0f9e6ffdeb8ae809d662eb3ff46eab5a109a8d93
* | Add support for the alternative base64 encoding in RFC 4648 section 5 to ↵Abseil Team2023-02-061-1/+1
|/ | | | | | | `WhenBase64Unescaped`. PiperOrigin-RevId: 507527786 Change-Id: Ie5e088b1814981f6c760d7e25418a430172705ec
* Make document and example code more clear in the caveat section for ↵Abseil Team2023-01-261-5/+11
| | | | | | | potential memory leak with `SetUpTestSuite`. PiperOrigin-RevId: 504706717 Change-Id: I5842a4569f81f6c0d636099b5cdaabe778996949
* Mention `DescribeMatcher` in matchers.mdAbseil Team2023-01-251-0/+12
| | | | | PiperOrigin-RevId: 504591836 Change-Id: I48c93490d0c3b7c6bfaceceb1cef5eedeacfe6c6
* Mention using MockFunction as a way to mock free functions.Abseil Team2023-01-181-0/+4
| | | | | PiperOrigin-RevId: 502901538 Change-Id: I0cf351b9ad1411ae9c45e09550c24e006a24e179