aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/docs/test-encyclopedia.html
diff options
context:
space:
mode:
authorGravatar John Cater <jcater@google.com>2018-04-06 08:29:53 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-06 08:31:36 -0700
commit4171fc6b8f1710ce2e3c6e4d233f5004c520b06e (patch)
treee9e195ac639f8a5c753b56349914142c34596095 /site/docs/test-encyclopedia.html
parent655ed474e5c9ab5fbdec921352a43a80769df6c3 (diff)
Add a new test environment variable, TEST_TARGET.
Also include the test target in the test log for easier debugging of tests. Fixes #4960. Change-Id: Ic79bf21e8eeba765b607755c1d290ee4e910d01f Closes #4972. Sample output: ``` exec ${PAGER:-/usr/bin/less} "$0" || exit 1 Executing tests from //src/test/shell/bazel:bazel_example_test ----------------------------------------------------------------------------- ``` Change-Id: I433cd9251a564b269da5566bb8401151ae4c99b7 PiperOrigin-RevId: 191891278
Diffstat (limited to 'site/docs/test-encyclopedia.html')
-rw-r--r--site/docs/test-encyclopedia.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/site/docs/test-encyclopedia.html b/site/docs/test-encyclopedia.html
index 071f45febd..1c2c126eda 100644
--- a/site/docs/test-encyclopedia.html
+++ b/site/docs/test-encyclopedia.html
@@ -213,6 +213,7 @@ test unless the user explicitly requests it.</p>
is set to the <var>run number</var> (starting with 1) for each individual test run.</td>
<td>optional</td>
</tr>
+ <tr><td><code>TEST_TARGET</code></td><td>The name of the target being tested</td><td>optional</td></tr>
<tr><td><code>TEST_SIZE</code></td><td>The test <a href="#size"><code>size</code></a></td><td>optional</td></tr>
<tr><td><code>TEST_TIMEOUT</code></td><td>The test <a href="#timeout"><code>timeout</code></a></td><td>optional</td></tr>
<tr><td><code>TEST_SRCDIR</code></td><td>absolute path to the base of the runfiles tree</td><td>required</td></tr>