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

Issue 415463002: [Android] Configurable instrumentation test runner + test SDK levels. (Closed)

Created:
6 years, 5 months ago by jbudorick
Modified:
6 years, 4 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Android] Configurable instrumentation test runner + test SDK levels. This patch: - extracts the instrumentation test runner from the AndroidManifest.xml file in the apk. - allows test authors to specify a minimum SDK level for instrumentation test classes via the MinAndroidSdkLevel annotation. - filters the list of instrumentation tests according to the sdk levels of all attached devices. - speeds up our proguard function by dumping to a temporary file. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286014

Patch Set 1 #

Patch Set 2 : extract test runner from apk manifest #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Remove MaxAndroidSdkLevel. #

Total comments: 2

Patch Set 5 : address comments from Maria. #

Patch Set 6 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -108 lines) Patch
A + base/test/android/javatests/src/org/chromium/base/test/util/MinAndroidSdkLevel.java View 1 2 3 4 5 1 chunk +7 lines, -10 lines 1 comment Download
M build/android/pylib/android_commands.py View 1 chunk +0 lines, -24 lines 0 comments Download
M build/android/pylib/instrumentation/test_jar.py View 1 2 3 9 chunks +136 lines, -65 lines 0 comments Download
M build/android/pylib/instrumentation/test_options.py View 1 chunk +1 line, -0 lines 0 comments Download
M build/android/pylib/instrumentation/test_runner.py View 1 2 3 4 5 1 chunk +26 lines, -1 line 0 comments Download
M build/android/pylib/utils/apk_helper.py View 1 2 1 chunk +55 lines, -3 lines 0 comments Download
M build/android/test_runner.py View 1 3 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
jbudorick
6 years, 5 months ago (2014-07-23 06:24:43 UTC) #1
klundberg
Hi John, Have you tested this by various calls? For example: - using test size ...
6 years, 5 months ago (2014-07-23 16:11:57 UTC) #2
jbudorick
On 2014/07/23 16:11:57, klundberg wrote: > Hi John, > > Have you tested this by ...
6 years, 5 months ago (2014-07-23 23:44:30 UTC) #3
klundberg
lgtm I think Craig should review the Python changes more closely but the approach looks ...
6 years, 4 months ago (2014-07-24 12:50:23 UTC) #4
craigdh
Python lgtm.
6 years, 4 months ago (2014-07-24 15:19:31 UTC) #5
Maria
https://codereview.chromium.org/415463002/diff/40001/build/android/pylib/instrumentation/test_jar.py File build/android/pylib/instrumentation/test_jar.py (right): https://codereview.chromium.org/415463002/diff/40001/build/android/pylib/instrumentation/test_jar.py#newcode153 build/android/pylib/instrumentation/test_jar.py:153: test_clazzez = ((n, i) for n, i in clazzez.items() ...
6 years, 4 months ago (2014-07-25 23:14:34 UTC) #6
frankf
Is it possible to use existing Restriction annotation: https://code.google.com/p/chromium/codesearch#chromium/src/base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java
6 years, 4 months ago (2014-07-25 23:20:04 UTC) #7
jbudorick
https://codereview.chromium.org/415463002/diff/40001/build/android/pylib/instrumentation/test_jar.py File build/android/pylib/instrumentation/test_jar.py (right): https://codereview.chromium.org/415463002/diff/40001/build/android/pylib/instrumentation/test_jar.py#newcode153 build/android/pylib/instrumentation/test_jar.py:153: test_clazzez = ((n, i) for n, i in clazzez.items() ...
6 years, 4 months ago (2014-07-25 23:25:40 UTC) #8
jbudorick
On 2014/07/25 23:20:04, frankf wrote: > Is it possible to use existing Restriction annotation: > ...
6 years, 4 months ago (2014-07-25 23:26:42 UTC) #9
jbudorick
On 2014/07/25 23:26:42, jbudorick wrote: > On 2014/07/25 23:20:04, frankf wrote: > > Is it ...
6 years, 4 months ago (2014-07-28 15:46:10 UTC) #10
Maria
lgtm
6 years, 4 months ago (2014-07-28 17:28:47 UTC) #11
jbudorick
+Yaron for java OWNERS
6 years, 4 months ago (2014-07-28 17:36:14 UTC) #12
Yaron
lgtm https://codereview.chromium.org/415463002/diff/100001/base/test/android/javatests/src/org/chromium/base/test/util/MinAndroidSdkLevel.java File base/test/android/javatests/src/org/chromium/base/test/util/MinAndroidSdkLevel.java (right): https://codereview.chromium.org/415463002/diff/100001/base/test/android/javatests/src/org/chromium/base/test/util/MinAndroidSdkLevel.java#newcode16 base/test/android/javatests/src/org/chromium/base/test/util/MinAndroidSdkLevel.java:16: public @interface MinAndroidSdkLevel { I don't see a ...
6 years, 4 months ago (2014-07-28 17:59:59 UTC) #13
jbudorick
On 2014/07/28 17:59:59, Yaron wrote: > lgtm > > https://codereview.chromium.org/415463002/diff/100001/base/test/android/javatests/src/org/chromium/base/test/util/MinAndroidSdkLevel.java > File > base/test/android/javatests/src/org/chromium/base/test/util/MinAndroidSdkLevel.java > ...
6 years, 4 months ago (2014-07-28 18:45:15 UTC) #14
jbudorick
The CQ bit was checked by jbudorick@chromium.org
6 years, 4 months ago (2014-07-28 18:45:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbudorick@chromium.org/415463002/100001
6 years, 4 months ago (2014-07-28 18:46:17 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-07-28 18:47:47 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-07-28 18:48:39 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/44892) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/34203) win_gpu ...
6 years, 4 months ago (2014-07-28 18:48:40 UTC) #19
jbudorick
The CQ bit was checked by jbudorick@chromium.org
6 years, 4 months ago (2014-07-28 20:39:47 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbudorick@chromium.org/415463002/100001
6 years, 4 months ago (2014-07-28 20:44:29 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-07-28 21:39:11 UTC) #22
commit-bot: I haz the power
6 years, 4 months ago (2014-07-28 23:06:21 UTC) #23
Message was sent while issue was closed.
Change committed as 286014

Powered by Google App Engine
This is Rietveld 408576698