diff options
author | 2015-09-08 16:22:20 +0000 | |
---|---|---|
committer | 2015-09-08 17:26:21 +0000 | |
commit | bb896184b737cc2ba9074d26f6ee1c618e7a4b41 (patch) | |
tree | 6a7e46de35436ee9a506bc0e83a11608c2cbec92 /site/docs/test-encyclopedia.html | |
parent | 7c991c333999f3027d31da6af700f575924066cd (diff) |
Added documentation for the blaze warning that indicates when test size is
too big. As defined in TestTimout.java
--
MOS_MIGRATED_REVID=102561927
Diffstat (limited to 'site/docs/test-encyclopedia.html')
-rw-r--r-- | site/docs/test-encyclopedia.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/site/docs/test-encyclopedia.html b/site/docs/test-encyclopedia.html index fea4ae1042..e7ae08c6e3 100644 --- a/site/docs/test-encyclopedia.html +++ b/site/docs/test-encyclopedia.html @@ -141,6 +141,25 @@ penalized for an overgenerous timeout, although a warning may be issued: you should generally set your timeout as tight as you can without incurring any flakiness.</p> +<p>There is also a recommended lower bound for test timeouts as follows: </p> + +<table class="table table-bordered table-striped table-condensed"> + <thead> + <tr><th>size</th><th>Time minimum (sec.)</th></tr> + </thead> + <tbody> + <tr><td><code>short</code></td><td>0</td></tr> + <tr><td><code>moderate</code></td><td>30</td></tr> + <tr><td><code>long</code></td><td>300</td></tr> + <tr><td><code>eternal</code></td><td>900</td></tr> + </tbody> +</table> + +<p>For example, if a "moderate" test completes in 5.5s, consider setting +<code>timeout</code>="short" or <code>size</code>="small". Using the bazel +<code>--test_verbose_timeout_warnings</code> command line option will show the +tests whose specified size is too big.</p> + <p>Test sizes and timeouts are specified in the BUILD file according to the specification <a href="build-encyclopedia.html#test">here</a>. Any test that does not specify a recognized size will default to being a medium |