Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/googletest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2022-11-03 19:34:43 +0300
committerCopybara-Service <copybara-worker@google.com>2022-11-03 19:35:31 +0300
commit66366cea569337c53c7ef1c72f84b566746e465e (patch)
treee827f97537b11d52c5bdec3dcb54ffd648cac881
parent3026483ae575e2de942db5e760cf95e973308dd5 (diff)
Add documentation for `--gunit_recreate_environments_when_repeating`.
PiperOrigin-RevId: 485895339 Change-Id: I09b0f535941531ef7bcb74593d385891d56b3e32
-rw-r--r--docs/advanced.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/advanced.md b/docs/advanced.md
index 59251706..f16382fe 100644
--- a/docs/advanced.md
+++ b/docs/advanced.md
@@ -1913,8 +1913,12 @@ Repeat the tests whose name matches the filter 1000 times.
If your test program contains
[global set-up/tear-down](#global-set-up-and-tear-down) code, it will be
-repeated in each iteration as well, as the flakiness may be in it. You can also
-specify the repeat count by setting the `GTEST_REPEAT` environment variable.
+repeated in each iteration as well, as the flakiness may be in it. To avoid
+repeating global set-up/tear-down, specify
+`--gtest_recreate_environments_when_repeating=false`{.nowrap}.
+
+You can also specify the repeat count by setting the `GTEST_REPEAT` environment
+variable.
### Shuffling the Tests