Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 2606153003: Report failed expect/assert to test launcher summary output. (Closed)

Created:
3 years, 11 months ago by alex-ac
Modified:
3 years, 11 months ago
Reviewers:
Paweł Hajdan Jr.
CC:
chromium-reviews, vmpstr+watch_chromium.org, Sergiy Byelozyorov
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Report failed expect/assert to test launcher summary output. Knowledge of concrete reason of test failure makes posible to properly group broken/flacky tests to create issues. This CL gathers failed gtest EXPECT_/ASSERT_* statements, and reports them to test launcher summary output json. This CL is continuation of previous one: https://codereview.chromium.org/2502953002/ I created a temporary test with single line EXPECT_TRUE(false); and there are some relevant lines from the summary: http://pastebin.com/vFMuADEX BUG= Committed: https://crrev.com/961577e159e5cd9a8af365d322213cf86124914d Cr-Commit-Position: refs/heads/master@{#441112}

Patch Set 1 #

Patch Set 2 : Fix msvc warning. #

Total comments: 12

Patch Set 3 : Fix review issues. #

Total comments: 2

Patch Set 4 : Always provide unencoded summary. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -0 lines) Patch
M base/test/gtest_xml_unittest_result_printer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M base/test/gtest_xml_unittest_result_printer.cc View 1 2 3 chunks +34 lines, -0 lines 0 comments Download
M base/test/gtest_xml_util.cc View 1 2 3 chunks +65 lines, -0 lines 0 comments Download
M base/test/launcher/test_result.h View 3 chunks +41 lines, -0 lines 0 comments Download
M base/test/launcher/test_result.cc View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M base/test/launcher/test_results_tracker.cc View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
Paweł Hajdan Jr.
Thanks for the patch! Just minor comments. https://codereview.chromium.org/2606153003/diff/20001/base/test/gtest_xml_unittest_result_printer.cc File base/test/gtest_xml_unittest_result_printer.cc (right): https://codereview.chromium.org/2606153003/diff/20001/base/test/gtest_xml_unittest_result_printer.cc#newcode107 base/test/gtest_xml_unittest_result_printer.cc:107: if (!NeedsEscaping(summary)) ...
3 years, 11 months ago (2016-12-30 19:02:40 UTC) #3
alex-ac
https://codereview.chromium.org/2606153003/diff/20001/base/test/gtest_xml_unittest_result_printer.cc File base/test/gtest_xml_unittest_result_printer.cc (right): https://codereview.chromium.org/2606153003/diff/20001/base/test/gtest_xml_unittest_result_printer.cc#newcode107 base/test/gtest_xml_unittest_result_printer.cc:107: if (!NeedsEscaping(summary)) { On 2016/12/30 19:02:39, Paweł Hajdan Jr. ...
3 years, 11 months ago (2016-12-30 22:10:20 UTC) #4
Paweł Hajdan Jr.
https://codereview.chromium.org/2606153003/diff/20001/base/test/launcher/test_results_tracker.cc File base/test/launcher/test_results_tracker.cc (right): https://codereview.chromium.org/2606153003/diff/20001/base/test/launcher/test_results_tracker.cc#newcode389 base/test/launcher/test_results_tracker.cc:389: result_part_value->SetString("summary_base64", encoded_summary); On 2016/12/30 22:10:20, alex-ac wrote: > On ...
3 years, 11 months ago (2017-01-02 09:21:37 UTC) #5
alex-ac
https://codereview.chromium.org/2606153003/diff/20001/base/test/launcher/test_results_tracker.cc File base/test/launcher/test_results_tracker.cc (right): https://codereview.chromium.org/2606153003/diff/20001/base/test/launcher/test_results_tracker.cc#newcode389 base/test/launcher/test_results_tracker.cc:389: result_part_value->SetString("summary_base64", encoded_summary); On 2017/01/02 09:21:37, Paweł Hajdan Jr. wrote: ...
3 years, 11 months ago (2017-01-03 08:28:59 UTC) #6
Paweł Hajdan Jr.
LGTM
3 years, 11 months ago (2017-01-03 09:03:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2606153003/60001
3 years, 11 months ago (2017-01-03 12:54:39 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
3 years, 11 months ago (2017-01-03 13:47:44 UTC) #12
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 13:49:49 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/961577e159e5cd9a8af365d322213cf86124914d
Cr-Commit-Position: refs/heads/master@{#441112}

Powered by Google App Engine
This is Rietveld 408576698