Peter Boström
5ed2186395
Use FAIL() in GTEST_SKIP() documentation
...
This replaces EXPECT_EQ(0, 1) which would fail if hit.
PiperOrigin-RevId: 690491467
Change-Id: Ieff4e616348254f29200e0ba1d9a6900a2eea130
2024-10-27 23:57:15 -07:00
Derek Mauro
3ef16ef8b3
Fix the documentation that erroneously says you can use short versions
...
of help flags
Fixes #4564
PiperOrigin-RevId: 650730047
Change-Id: I3a52aca490338066c607e34ab20c827bfde5090d
2024-07-09 12:59:38 -07:00
Copybara-Service
fc0076ffc4
Merge pull request #4435 from kaswhy:main
...
PiperOrigin-RevId: 602385832
Change-Id: I755dae5707e98b6157930a74de90a8e19ef17603
2024-01-29 07:50:37 -08:00
kaswhy
1cab76c7b8
Docs: Add mention of gtest_recreate_environments_when_repeating
2024-01-23 21:39:40 +09:00
kaswhy
778badf63a
Docs: add conditions for calling SetUp and TearDown()
2024-01-12 01:06:00 +09:00
kaswhy
dda72ef321
Docs: add conditions for calling TearDown()
2023-12-29 02:05:18 +09:00
Elior Schneider
722daa3da6
Update advanced.md
...
http to https
2023-08-20 09:38:57 +03:00
sthd
8ca57f194a
Changed 2 public links from http to https
2023-08-11 11:26:59 +03:00
Abseil Team
7e33b6a1c4
Specify SetUpTestSuite is required to be public.
...
PiperOrigin-RevId: 555578256
Change-Id: I9366fc99ae953c29e468fcddb4be203c9c05661b
2023-08-10 11:27:05 -07:00
Abseil Team
e9fb5c7bac
Replace const char*
with absl::string_view
as the latter is preferred.
...
PiperOrigin-RevId: 519122695
Change-Id: I7dcf969d15d26ccc4b376e3ab6db7f4c08c7386f
2023-03-24 05:58:11 -07:00
Phoebe Liang
3288c4deae
Revise documentation to include AbslStringify
...
PiperOrigin-RevId: 518039451
Change-Id: Ife548d0f83266746ce1981bea31e70e6b43027c9
2023-03-20 12:11:55 -07:00
Abseil Team
d0ba3ccc76
Added a missing semicolon for GTEST_FLAG_SET code snippet.
...
PiperOrigin-RevId: 511858980
Change-Id: I0f9e6ffdeb8ae809d662eb3ff46eab5a109a8d93
2023-02-23 12:40:25 -08:00
Abseil Team
4b4c56aff6
Make document and example code more clear in the caveat section for potential memory leak with SetUpTestSuite
.
...
PiperOrigin-RevId: 504706717
Change-Id: I5842a4569f81f6c0d636099b5cdaabe778996949
2023-01-25 17:43:53 -08:00
Abseil Team
66366cea56
Add documentation for --gunit_recreate_environments_when_repeating
.
...
PiperOrigin-RevId: 485895339
Change-Id: I09b0f535941531ef7bcb74593d385891d56b3e32
2022-11-03 09:35:31 -07:00
Abseil Team
03597a01ee
Clarify that parameter generator does not evaluate immediately
...
This aims to avoid confusion as to what kinds of computations are valid inside
a parameter generator expression, calling out flags as a supported use case.
PiperOrigin-RevId: 483397027
Change-Id: I2d036fae95120d617f30a5566ea7498ce1f9bfb6
2022-10-24 09:02:02 -07:00
Abseil Team
9fbb657503
Update the POSIX Extended section of the Regular Expression Wikipedia page
...
PiperOrigin-RevId: 479667644
Change-Id: I4ab03bd5f0520f8586667de8bd1b9443f241337a
2022-10-07 14:21:04 -07:00
assafpr
df4b8edee0
Update advanced.md
...
master branch changed to main branch in links
2022-06-27 09:48:05 +03:00
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