aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/buildeventstream
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2017-03-08 17:33:08 +0000
committerGravatar Vladimir Moskva <vladmos@google.com>2017-03-09 10:27:59 +0000
commit0aaa6ddd575724b75915072197a2cf0d4c824e7c (patch)
treeb2babbc2191f2c7f8e46277f5e9a6f12aa773ac2 /src/main/java/com/google/devtools/build/lib/buildeventstream
parentbdd62b323e6d79d8ccb5c12be4d239fb4119b4f6 (diff)
BEP: provide timing information for tests
For tests, also provide information on the time the test took. -- Change-Id: I8e71391e4dd97627d6293159a0cbb0d922683af7 Reviewed-on: https://cr.bazel.build/9214 PiperOrigin-RevId: 149547633 MOS_MIGRATED_REVID=149547633
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/buildeventstream')
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto b/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto
index c07430f9ce..072a7ef9ca 100644
--- a/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto
+++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto
@@ -244,6 +244,9 @@ message TargetComplete {
message TestResult {
bool success = 1;
+ // Time the test took to run; unset if the test result was cached.
+ int64 test_attempt_duration_millis = 3;
+
// Files (logs, test.xml, undeclared outputs, etc) generated by that test
// action.
repeated File test_action_output = 2;