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

Unified Diff: build/android/pylib/instrumentation/setup.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: 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/pylib/instrumentation/setup.py
diff --git a/build/android/pylib/instrumentation/setup.py b/build/android/pylib/instrumentation/setup.py
index 628adbcb52e997aa0975ef43be54a7e5d637b275..45836c8e1cfdf640db6899ef4d327165131a7aab 100644
--- a/build/android/pylib/instrumentation/setup.py
+++ b/build/android/pylib/instrumentation/setup.py
@@ -19,7 +19,7 @@ import test_runner
def Setup(test_apk_path, test_apk_jar_path, annotations, exclude_annotations,
test_filter, build_type, test_data, install_apk, save_perf_json,
screenshot_failures, tool, wait_for_debugger, disable_assertions,
- push_deps, cleanup_test_files):
+ push_deps, cleanup_test_files, coverage, coverage_dir):
"""Create and return the test runner factory and tests.
Args:
@@ -38,6 +38,9 @@ def Setup(test_apk_path, test_apk_jar_path, annotations, exclude_annotations,
disable_assertions: Whether to disable java assertions on the device.
push_deps: If True, push all dependencies to the device.
cleanup_test_files: Whether or not to cleanup test files on device.
+ coverage: If True, instrument with EMMA coverage tool.
+ coverage_dir: Directory to pull all EMMA coverage files into, or None if
+ coverage is not being used.
Returns:
A tuple of (TestRunnerFactory, tests).
@@ -52,6 +55,7 @@ def Setup(test_apk_path, test_apk_jar_path, annotations, exclude_annotations,
return test_runner.TestRunner(
build_type, test_data, install_apk, save_perf_json, screenshot_failures,
tool, wait_for_debugger, disable_assertions, push_deps,
- cleanup_test_files, device, shard_index, test_pkg, [])
+ cleanup_test_files, device, shard_index, test_pkg, [], coverage,
+ coverage_dir)
return (TestRunnerFactory, tests)

Powered by Google App Engine
This is Rietveld 408576698