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

Issue 12263024: Android: Add test runner scripts to run content_browsertests. (Closed)

Created:
7 years, 10 months ago by nilesh
Modified:
7 years, 10 months ago
Reviewers:
craigdh, Jay Civelli, frankf
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: Add test runner scripts to run content_browsertests. We want to run only one testcase each time the test activity is invoked. Next: Currently the APK is reinstalled before runnning each test case, avoiding that (and other test data setup) will speed up tests a lot. build/android/run_browser_tests.py -vvv -f SessionHistoryTest.BasicBackForward:SessionHistoryTest.FrameBackForward BUG=138275 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=183982

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Using the gtest testrunner now. #

Patch Set 6 : Adding dispatch.py #

Patch Set 7 : Actually adding dispatch.py #

Total comments: 1

Patch Set 8 : Rebased with the shard.py change #

Patch Set 9 : Remove unused browsertests/test_sharder.py #

Total comments: 6

Patch Set 10 : Addressed Craig's comments. #

Total comments: 4

Patch Set 11 : Addressed Frank's comments and fixed typo in constants.py #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -21 lines) Patch
A + build/android/pylib/browsertests/__init__.py View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
A build/android/pylib/browsertests/dispatch.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +73 lines, -0 lines 0 comments Download
M build/android/pylib/constants.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M build/android/pylib/gtest/dispatch.py View 1 2 3 4 5 6 7 5 chunks +9 lines, -6 lines 0 comments Download
M build/android/pylib/gtest/test_package_apk.py View 6 chunks +13 lines, -11 lines 0 comments Download
M build/android/pylib/gtest/test_runner.py View 1 2 3 4 5 6 7 8 9 10 3 chunks +15 lines, -3 lines 0 comments Download
A build/android/run_browser_tests.py View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
nilesh
7 years, 10 months ago (2013-02-14 22:42:26 UTC) #1
nilesh
+craigdh
7 years, 10 months ago (2013-02-15 01:47:40 UTC) #2
frankf
Currently, there's little difference between browser_tests test_runner/sharder and existing gtests except some constant parameters. Can ...
7 years, 10 months ago (2013-02-15 02:10:02 UTC) #3
nilesh
Got rid of the custom test_runner. The sharder will go away one I merge with ...
7 years, 10 months ago (2013-02-20 18:23:31 UTC) #4
nilesh
https://codereview.chromium.org/12263024/diff/7002/build/android/pylib/browsertests/test_runner.py File build/android/pylib/browsertests/test_runner.py (right): https://codereview.chromium.org/12263024/diff/7002/build/android/pylib/browsertests/test_runner.py#newcode57 build/android/pylib/browsertests/test_runner.py:57: 'content-browser-tests-command-line') On 2013/02/15 02:10:02, frankf wrote: > Define these ...
7 years, 10 months ago (2013-02-20 18:23:36 UTC) #5
craigdh
fyi, I've landed the new sharder. Sorry to have all this churn in the middle ...
7 years, 10 months ago (2013-02-20 23:45:30 UTC) #6
nilesh
Rebased: Added support for GetAllTests and sharding. Updated description. Please take another look.
7 years, 10 months ago (2013-02-21 00:12:15 UTC) #7
craigdh
https://codereview.chromium.org/12263024/diff/20002/build/android/pylib/browsertests/dispatch.py File build/android/pylib/browsertests/dispatch.py (right): https://codereview.chromium.org/12263024/diff/20002/build/android/pylib/browsertests/dispatch.py#newcode29 build/android/pylib/browsertests/dispatch.py:29: if options.gtest_filter: This isn't needed. https://codereview.chromium.org/12263024/diff/20002/build/android/pylib/gtest/test_runner.py File build/android/pylib/gtest/test_runner.py (right): ...
7 years, 10 months ago (2013-02-21 00:26:02 UTC) #8
nilesh
https://codereview.chromium.org/12263024/diff/20002/build/android/pylib/browsertests/dispatch.py File build/android/pylib/browsertests/dispatch.py (right): https://codereview.chromium.org/12263024/diff/20002/build/android/pylib/browsertests/dispatch.py#newcode29 build/android/pylib/browsertests/dispatch.py:29: if options.gtest_filter: On 2013/02/21 00:26:02, craigdh wrote: > This ...
7 years, 10 months ago (2013-02-21 18:04:13 UTC) #9
craigdh
lgtm.
7 years, 10 months ago (2013-02-21 18:05:47 UTC) #10
frankf
lgtm with nits. https://codereview.chromium.org/12263024/diff/28001/build/android/pylib/browsertests/dispatch.py File build/android/pylib/browsertests/dispatch.py (right): https://codereview.chromium.org/12263024/diff/28001/build/android/pylib/browsertests/dispatch.py#newcode16 build/android/pylib/browsertests/dispatch.py:16: CONTENT_BROWSERTEST_SUITENAME = 'content_browsertests' 2 blank lines. ...
7 years, 10 months ago (2013-02-21 19:25:50 UTC) #11
nilesh
https://codereview.chromium.org/12263024/diff/28001/build/android/pylib/browsertests/dispatch.py File build/android/pylib/browsertests/dispatch.py (right): https://codereview.chromium.org/12263024/diff/28001/build/android/pylib/browsertests/dispatch.py#newcode16 build/android/pylib/browsertests/dispatch.py:16: CONTENT_BROWSERTEST_SUITENAME = 'content_browsertests' On 2013/02/21 19:25:50, frankf wrote: > ...
7 years, 10 months ago (2013-02-21 20:10:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nileshagrawal@chromium.org/12263024/22002
7 years, 10 months ago (2013-02-21 22:29:22 UTC) #13
commit-bot: I haz the power
7 years, 10 months ago (2013-02-22 02:26:16 UTC) #14
Message was sent while issue was closed.
Change committed as 183982

Powered by Google App Engine
This is Rietveld 408576698