Skip to content

Commit 66366ce

Browse files
Abseil Teamcopybara-github
Abseil Team
authored andcommitted
Add documentation for --gunit_recreate_environments_when_repeating.
PiperOrigin-RevId: 485895339 Change-Id: I09b0f535941531ef7bcb74593d385891d56b3e32
1 parent 3026483 commit 66366ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/advanced.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,8 +1913,12 @@ Repeat the tests whose name matches the filter 1000 times.
19131913

19141914
If your test program contains
19151915
[global set-up/tear-down](#global-set-up-and-tear-down) code, it will be
1916-
repeated in each iteration as well, as the flakiness may be in it. You can also
1917-
specify the repeat count by setting the `GTEST_REPEAT` environment variable.
1916+
repeated in each iteration as well, as the flakiness may be in it. To avoid
1917+
repeating global set-up/tear-down, specify
1918+
`--gtest_recreate_environments_when_repeating=false`{.nowrap}.
1919+
1920+
You can also specify the repeat count by setting the `GTEST_REPEAT` environment
1921+
variable.
19181922

19191923
### Shuffling the Tests
19201924

0 commit comments

Comments
 (0)