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

Unified Diff: build/android/test_runner.py

Issue 20210002: [Android] Sets up a coverage system for java using EMMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removes unnecessary option, cleans up some string formatting Created 7 years, 5 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
Index: build/android/test_runner.py
diff --git a/build/android/test_runner.py b/build/android/test_runner.py
index f89fdb9263bc9008ac61a6e3325e765b8c90bfe5..b229d9ed65d0f02daf942e6d355c85f4f6fb37af 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -281,6 +281,9 @@ def AddInstrumentationTestOptions(option_parser):
help=('The name of the apk containing the tests '
'(without the .apk extension; e.g. "ContentShellTest"). '
'Alternatively, this can be a full path to the apk.'))
+ option_parser.add_option('--coverage_dir', default=None,
frankf 2013/07/25 20:28:19 No need for default=None
gkanwar1 2013/08/01 02:14:35 Done.
+ help=('Directory in which to place all generated '
+ 'EMMA coverage files.'))
def ProcessInstrumentationOptions(options, error_func):
@@ -431,7 +434,7 @@ def _RunInstrumentationTests(options, error_func):
options.test_data, options.install_apk, options.save_perf_json,
options.screenshot_failures, options.tool, options.wait_for_debugger,
options.disable_assertions, options.push_deps,
- options.cleanup_test_files)
+ options.cleanup_test_files, options.coverage_dir)
test_results, exit_code = test_dispatcher.RunTests(
tests, runner_factory, options.wait_for_debugger,

Powered by Google App Engine
This is Rietveld 408576698