String "short"
, "moderate"
, "long"
, or
"eternal"
; nonconfigurable; default is derived
from the test's size
attribute
How long the test is expected to run before returning.
While a test's size attribute controls resource estimation, a test's
timeout may be set independently. If not explicitly specified, the
timeout is based on the test's size. The test
timeout can be overridden with the --test_timeout
flag, e.g. for
running under certain conditions which are known to be slow. Test timeout values
correspond to the following time periods:
Timeout Value | Time Period |
---|---|
short | 1 minute |
moderate | 5 minutes |
long | 15 minutes |
eternal | 60 minutes |
For times other than the above, the test timeout can be overridden with the
--test_timeout
bazel flag, e.g. for manually running under
conditions which are known to be slow. The --test_timeout
values
are in seconds. For example --test_timeout=120
will set the test
timeout to two minutes.
The environment variable
TEST_TIMEOUT
will be set to the test timeout (in seconds) when spawning the test.