From 66366cea569337c53c7ef1c72f84b566746e465e Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Thu, 3 Nov 2022 09:34:43 -0700 Subject: [PATCH] Add documentation for `--gunit_recreate_environments_when_repeating`. PiperOrigin-RevId: 485895339 Change-Id: I09b0f535941531ef7bcb74593d385891d56b3e32 --- docs/advanced.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/advanced.md b/docs/advanced.md index 59251706e..f16382fe0 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