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

Unified Diff: scripts/slave/recipe_modules/chromium_android/api.py

Issue 591333002: [Android] Run java unit tests on the android tester bots. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | scripts/slave/recipes/android/tester.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/chromium_android/api.py
diff --git a/scripts/slave/recipe_modules/chromium_android/api.py b/scripts/slave/recipe_modules/chromium_android/api.py
index 46303db6ff225851460da10d6014347fe8a9e930..c9b6228382cb638a2969debf08492d002cf6d1c0 100644
--- a/scripts/slave/recipe_modules/chromium_android/api.py
+++ b/scripts/slave/recipe_modules/chromium_android/api.py
@@ -561,6 +561,18 @@ class AndroidApi(recipe_api.RecipeApi):
env=self.get_env(),
**kwargs)
+ def run_java_unit_test_suite(self, suite, verbose=True, **kwargs):
+ args = []
+ if verbose:
+ args.append('--verbose')
+
+ self.m.python(
+ str(suite),
+ self.m.path['checkout'].join('build', 'android', 'test_runner.py'),
+ ['junit', '-s', suite] + args,
+ env=self.get_env(),
+ **kwargs)
+
def coverage_report(self, **kwargs):
assert self.c.coverage, (
'Trying to generate coverage report but coverage is not enabled')
« no previous file with comments | « no previous file | scripts/slave/recipes/android/tester.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698