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

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: Gets code coverage for non-apk java working 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 b51effb23f82bcf898e68e9a48ad125906a02e15..76d508b5f3ff9d1a8d8efef4a353a440f283cce4 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -250,6 +250,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',
frankf 2013/08/01 19:57:41 --coverage-dir
gkanwar1 2013/08/07 19:24:56 Done.
+ help=('Directory in which to place all generated '
+ 'EMMA coverage files.'))
def ProcessInstrumentationOptions(options, error_func):
@@ -367,7 +370,7 @@ def _RunInstrumentationTests(options, error_func):
options.exclude_annotations, options.test_filter, options.build_type,
options.test_data, options.save_perf_json, options.screenshot_failures,
options.tool, options.wait_for_debugger, options.disable_assertions,
- options.push_deps, options.cleanup_test_files)
+ options.push_deps, 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