Commit Graph

39 Commits

Author SHA1 Message Date
Abseil Team
b1f84bf176 Update googletest docs to indicate that RE2 is now used for regexp implementation when building with Bazel and using Abseil.
PiperOrigin-RevId: 454012698
Change-Id: I3a9df78368ffe3cb7cf3d315001125b97b1aebbe
2022-06-09 14:25:17 -07:00
elixir
6cd3823783 Clarify that this-> is needed to access members of type-parameterized tests.
PiperOrigin-RevId: 451439108
Change-Id: I8929df21d53cbe6c42e38653e1bb0cac72fc36f9
2022-05-27 11:32:10 -07:00
Copybara-Service
8a422b8398 Merge pull request #3774 from sobczyk:main
PiperOrigin-RevId: 434738675
Change-Id: I7c8de4004bac6b750674d19e3e79c0695a42652e
2022-03-15 06:55:30 -07:00
Szymon Sobik
132059ba0c Adjust documentation regarding xml and json source file location otput. 2022-03-08 01:16:36 +01:00
Abseil Team
9ca071b6e5 Googletest export
Revert CL that updated example for SetUpTestSuite/TearDownTestSuite to initialize static member variables inline.

It seems that non-const static data members for some reason still must be initialized out-of-line.

PiperOrigin-RevId: 408913846
2021-11-10 17:21:19 -05:00
Abseil Team
79efd968bf Googletest export
Update example for SetUpTestSuite/TearDownTestSuite to use modern C++ standards.

Currently it is using an outdated C++ construct (defining static member variables separately from the declaration).

PiperOrigin-RevId: 408663014
2021-11-09 16:31:33 -05:00
Abseil Team
aa486f165e Googletest export
Add missing InitGoogleTest line in "Registering tests" example code

Copying the original code gives the following error message
"""
IMPORTANT NOTICE - DO NOT IGNORE:
This test program did NOT call testing::InitGoogleTest() before calling RUN_ALL_TESTS(). This is INVALID. Soon Google Test will start to enforce the valid usage. Please fix it ASAP, or IT WILL START TO FAIL.
"""

PiperOrigin-RevId: 408385714
2021-11-09 10:24:14 -05:00
Abseil Team
d4e084a1cc Googletest export
Style only change. Make use of advanced testing functions `FloatLE` and `DoubleLE` consistent.

PiperOrigin-RevId: 407660542
2021-11-09 10:23:55 -05:00
Abseil Team
7cf37a18d1 Googletest export
Add docs section on test sharding

Fixes #3622

PiperOrigin-RevId: 405712812
2021-11-03 13:45:51 -04:00
Abseil Team
6bfab0becc Googletest export
Add a caveat section for potential memory leak with derived classes using `SetUpTestSuite`.

PiperOrigin-RevId: 396986728
2021-09-16 13:00:01 -04:00
Abseil Team
2f80c2ba71 Googletest export
Standardize access to GoogleTest flags on GTEST_FLAG_GET/GTEST_FLAG_SET

Custom implementations can decide how access to flags is performed depending on the implementation of flags being used.

PiperOrigin-RevId: 391971115
2021-08-20 15:08:40 -04:00
Abseil Team
5b40153003 Googletest export
Format documentation

PiperOrigin-RevId: 388592443
2021-08-04 13:54:45 -04:00
Abseil Team
c22ce88775 Googletest export
Standardize access to GoogleTest flags on GTEST_FLAG_GET/GTEST_FLAG_SET

Custom implementations can decide how access to flags is performed depending on the implementation of flags being used.

PiperOrigin-RevId: 388181424
2021-08-04 13:54:33 -04:00
Abseil Team
29d2540622 Googletest export
Proliferation of inclusive language.

PiperOrigin-RevId: 387535677
2021-08-04 13:54:27 -04:00
Abseil Team
53495a2a7d Googletest export
Create new Testing API reference

PiperOrigin-RevId: 376969148
2021-06-02 17:55:09 -04:00
Abseil Team
d5d6ff940b Googletest export
Create Assertions Reference

PiperOrigin-RevId: 375824718
2021-06-02 17:54:45 -04:00
Abseil Team
9741c42200 Googletest export
Add missing link

PiperOrigin-RevId: 374774097
2021-05-21 13:58:11 -07:00
Abseil Team
f8519738b0 Googletest export
Remove inapplicable example

PiperOrigin-RevId: 374762004
2021-05-21 13:58:03 -07:00
Abseil Team
d69a112956 Googletest export
Fix code in googletest parameterized name example.

PiperOrigin-RevId: 373262838
2021-05-13 15:08:49 -04:00
Abseil Team
065a0c8140 Googletest export
Clean up links to Matchers Reference

PiperOrigin-RevId: 370821457
2021-04-29 10:40:37 -04:00
Abseil Team
680a5aa337 Googletest export
Move matchers reference from cheat sheet into its own document

PiperOrigin-RevId: 370749693
2021-04-29 10:40:29 -04:00
Derek Mauro
11da093e04 Merge pull request #3174 from sebkraemer:issue-15644
PiperOrigin-RevId: 369696657
2021-04-26 14:07:16 -04:00
Sebastian Krämer
124e87a303 Apply missing suggestions from code review for GTEST_SKIP
Co-authored-by: Eric Schmidt <shibumi@google.com>
2021-04-15 22:28:41 +02:00
Sebastian Krämer
1de97fd1c3 Apply suggestions from code review for GTEST_SKIP documentation
Extended example and some rewording by @ericschmidtatwork, thank you.

Co-authored-by: Eric Schmidt <shibumi@google.com>
2021-04-15 22:28:41 +02:00
Sebastian Krämer
c4ed56eb75 Add subsection for GTEST_SKIP documentation
A subsection "Skipping test execution" was added to document GTEST_SKIP
and where it can be used.

relates issue #1544
2021-04-15 22:28:41 +02:00
Abseil Team
486a4a6be5 Googletest export
Adds a warning about anonymous namespaces in relation to private testing.

PiperOrigin-RevId: 367730808
2021-04-12 20:14:27 -07:00
Abseil Team
6dabd081e9 Googletest export
Code style cleanup in docs

PiperOrigin-RevId: 364907938
2021-03-25 13:43:28 -07:00
Abseil Team
5142ccd2d4 Googletest export
Update advanced.md

PiperOrigin-RevId: 364839958
2021-03-25 13:43:21 -07:00
Abseil Team
32983d211b Googletest export
Fix enum names in a value-parameterized test example.

PiperOrigin-RevId: 360559723
2021-03-04 12:07:32 -05:00
Abseil Team
d9c309fdab Googletest export
Add files for GitHub Pages

PiperOrigin-RevId: 358289110
2021-02-19 13:55:48 -05:00
Abseil Team
bc32a87452 Googletest export
Update the custom name example to not use underscores.

The NOTE a few blocks above specifically calls out that test names should not contain undersccores, so probably the example should not suggest using underscores.

PiperOrigin-RevId: 357204578
2021-02-18 13:26:48 -05:00
Abseil Team
e935e6c387 Googletest export
Internal change

PiperOrigin-RevId: 356867746
2021-02-18 13:26:12 -05:00
Abseil Team
609281088c Googletest export
Docs cleanup

PiperOrigin-RevId: 356798444
2021-02-11 12:49:54 -05:00
Abseil Team
8599d312ce Googletest export
Fix terminal output formatting in advanced guide

PiperOrigin-RevId: 355233178
2021-02-05 10:40:45 -08:00
Abseil Team
8a7618672a Googletest export
Delete internal tags from docs

PiperOrigin-RevId: 353769887
2021-01-26 15:43:46 -05:00
Abseil Team
14098f2015 Googletest export
Merge CONTRIBUTORS, delete LICENSEs in googletest/ and googlemock/

PiperOrigin-RevId: 352558822
2021-01-26 15:42:13 -05:00
Abseil Team
d128fc8252 Googletest export
Fixes #3222, fixes #3225, closes #3223

PiperOrigin-RevId: 352066131
2021-01-15 15:54:03 -05:00
Krystian Kuzniarek
1b4e47767f fix a broken link 2021-01-15 12:04:18 +01:00
Abseil Team
489283524e Googletest export
Move all docs into top-level docs/ directory

PiperOrigin-RevId: 350211277
2021-01-13 20:59:12 -05:00