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

Issue 12544033: [Android] Rewrite base test result classes. (Closed)

Created:
7 years, 9 months ago by frankf
Modified:
7 years, 9 months ago
Reviewers:
craigdh
CC:
chromium-reviews, klundberg+watch_chromium.org, frankf+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy+watch_chromium.org
Visibility:
Public.

Description

[Android] Rewrite base test result classes. - Use set instead of list - Encapsulate internals - Add unit tests - Separate out the reporting utilities BUG=167331 NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190525

Patch Set 1 #

Total comments: 36

Patch Set 2 : Fixed craig's nits #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+616 lines, -665 lines) Patch
A build/android/pylib/base/base_test_result.py View 1 2 3 1 chunk +165 lines, -0 lines 2 comments Download
A build/android/pylib/base/base_test_result_unittest.py View 1 2 1 chunk +81 lines, -0 lines 0 comments Download
M build/android/pylib/base/base_test_runner.py View 1 chunk +2 lines, -1 line 0 comments Download
M build/android/pylib/base/shard.py View 6 chunks +12 lines, -7 lines 0 comments Download
M build/android/pylib/base/shard_unittest.py View 1 2 8 chunks +31 lines, -25 lines 0 comments Download
M build/android/pylib/base/sharded_tests_queue.py View 1 chunk +1 line, -1 line 0 comments Download
D build/android/pylib/base/test_result.py View 1 chunk +0 lines, -270 lines 0 comments Download
M build/android/pylib/browsertests/dispatch.py View 1 2 chunks +5 lines, -2 lines 0 comments Download
M build/android/pylib/gtest/dispatch.py View 2 chunks +5 lines, -3 lines 0 comments Download
M build/android/pylib/gtest/test_package.py View 1 2 6 chunks +21 lines, -16 lines 0 comments Download
M build/android/pylib/gtest/test_package_executable.py View 1 chunk +1 line, -1 line 0 comments Download
M build/android/pylib/gtest/test_runner.py View 1 2 3 chunks +7 lines, -15 lines 0 comments Download
M build/android/pylib/host_driven/python_test_base.py View 1 2 3 chunks +20 lines, -61 lines 0 comments Download
M build/android/pylib/host_driven/python_test_caller.py View 1 2 5 chunks +42 lines, -11 lines 0 comments Download
M build/android/pylib/host_driven/python_test_sharder.py View 6 chunks +16 lines, -20 lines 0 comments Download
M build/android/pylib/host_driven/run_python_tests.py View 2 chunks +2 lines, -2 lines 0 comments Download
M build/android/pylib/instrumentation/dispatch.py View 3 chunks +3 lines, -3 lines 0 comments Download
M build/android/pylib/instrumentation/test_package.py View 1 chunk +2 lines, -1 line 0 comments Download
A build/android/pylib/instrumentation/test_result.py View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
M build/android/pylib/instrumentation/test_runner.py View 1 2 4 chunks +15 lines, -14 lines 0 comments Download
M build/android/pylib/utils/flakiness_dashboard_results_uploader.py View 2 chunks +10 lines, -10 lines 0 comments Download
D build/android/pylib/utils/jar_helper.py View 1 chunk +0 lines, -163 lines 0 comments Download
A build/android/pylib/utils/report_results.py View 1 2 1 chunk +114 lines, -0 lines 0 comments Download
M build/android/run_instrumentation_tests.py View 1 2 2 chunks +8 lines, -14 lines 0 comments Download
M build/android/run_monkey_test.py View 1 2 3 chunks +12 lines, -15 lines 0 comments Download
M build/android/run_uiautomator_tests.py View 1 2 2 chunks +7 lines, -10 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
frankf
7 years, 9 months ago (2013-03-22 23:22:50 UTC) #1
craigdh
Comments so far. Made it about halfway, nothing major. https://codereview.chromium.org/12544033/diff/1/build/android/pylib/base/base_test_result.py File build/android/pylib/base/base_test_result.py (right): https://codereview.chromium.org/12544033/diff/1/build/android/pylib/base/base_test_result.py#newcode7 build/android/pylib/base/base_test_result.py:7: ...
7 years, 9 months ago (2013-03-23 00:41:39 UTC) #2
frankf
https://codereview.chromium.org/12544033/diff/1/build/android/pylib/base/base_test_result.py File build/android/pylib/base/base_test_result.py (right): https://codereview.chromium.org/12544033/diff/1/build/android/pylib/base/base_test_result.py#newcode7 build/android/pylib/base/base_test_result.py:7: class TestType(object): On 2013/03/23 00:41:39, craigdh wrote: > doc ...
7 years, 9 months ago (2013-03-23 01:32:58 UTC) #3
craigdh
https://codereview.chromium.org/12544033/diff/1/build/android/pylib/base/base_test_result.py File build/android/pylib/base/base_test_result.py (right): https://codereview.chromium.org/12544033/diff/1/build/android/pylib/base/base_test_result.py#newcode139 build/android/pylib/base/base_test_result.py:139: return set([t for t in self._results if t.GetType() == ...
7 years, 9 months ago (2013-03-25 18:06:42 UTC) #4
craigdh
lgtm with nits (assuming everything works perfectly :) https://codereview.chromium.org/12544033/diff/12001/build/android/pylib/utils/report_results.py File build/android/pylib/utils/report_results.py (right): https://codereview.chromium.org/12544033/diff/12001/build/android/pylib/utils/report_results.py#newcode16 build/android/pylib/utils/report_results.py:16: def ...
7 years, 9 months ago (2013-03-25 19:08:45 UTC) #5
frankf
https://codereview.chromium.org/12544033/diff/12001/build/android/pylib/utils/report_results.py File build/android/pylib/utils/report_results.py (right): https://codereview.chromium.org/12544033/diff/12001/build/android/pylib/utils/report_results.py#newcode16 build/android/pylib/utils/report_results.py:16: def _LogToFile(results, test_type, test_suite, build_type): This is not called ...
7 years, 9 months ago (2013-03-25 22:37:39 UTC) #6
craigdh
https://codereview.chromium.org/12544033/diff/35002/build/android/pylib/base/base_test_result.py File build/android/pylib/base/base_test_result.py (right): https://codereview.chromium.org/12544033/diff/35002/build/android/pylib/base/base_test_result.py#newcode9 build/android/pylib/base/base_test_result.py:9: """Class enumerating test types.""" update docstring https://codereview.chromium.org/12544033/diff/35002/build/android/pylib/base/base_test_result.py#newcode98 build/android/pylib/base/base_test_result.py:98: return ...
7 years, 9 months ago (2013-03-25 23:29:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/frankf@chromium.org/12544033/35002
7 years, 9 months ago (2013-03-25 23:54:46 UTC) #8
frankf
7 years, 9 months ago (2013-03-26 00:29:18 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 manually as r190525 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698