aboutsummaryrefslogtreecommitdiffstats
path: root/ddms/libs/ddmlib/src
diff options
context:
space:
mode:
authorBrett Chabot <>2009-03-31 19:15:42 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-31 19:15:42 -0700
commit1a1ed2ac4926b426de82ace42dd9a56d483ace33 (patch)
tree9c880d29cc72f1294c2dc4b24827b80a770f6625 /ddms/libs/ddmlib/src
parentee76a2912fa5611f18dd6d46d7ed4c7b6037bbb8 (diff)
downloadsdk-1a1ed2ac4926b426de82ace42dd9a56d483ace33.zip
sdk-1a1ed2ac4926b426de82ace42dd9a56d483ace33.tar.gz
sdk-1a1ed2ac4926b426de82ace42dd9a56d483ace33.tar.bz2
AI 143918: am: CL 143917 ADT Android JUnit: Change logic to provide an explicit project or package to run to the device InstrumentationTestRunner, instead of providing the potentially huge list of test classes. Discontinue support for running all tests in a source folder.
Original author: brettchabot Merged from: //branches/cupcake/... Automated import of CL 143918
Diffstat (limited to 'ddms/libs/ddmlib/src')
-rw-r--r--ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/RemoteAndroidTestRunner.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/RemoteAndroidTestRunner.java b/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/RemoteAndroidTestRunner.java
index 9995426..9dd1d16 100644
--- a/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/RemoteAndroidTestRunner.java
+++ b/ddms/libs/ddmlib/src/com/android/ddmlib/testrunner/RemoteAndroidTestRunner.java
@@ -49,6 +49,7 @@ public class RemoteAndroidTestRunner {
private static final String LOG_ARG_NAME = "log";
private static final String DEBUG_ARG_NAME = "debug";
private static final String COVERAGE_ARG_NAME = "coverage";
+ private static final String PACKAGE_ARG_NAME = "package";
/**
* Creates a remote Android test runner.
@@ -146,6 +147,16 @@ public class RemoteAndroidTestRunner {
}
/**
+ * Sets to run all tests in specified package
+ * Must be called before 'run'.
+ *
+ * @param packageName fully qualified package name (eg x.y.z)
+ */
+ public void setTestPackageName(String packageName) {
+ addInstrumentationArg(PACKAGE_ARG_NAME, packageName);
+ }
+
+ /**
* Adds a argument to include in instrumentation command.
* <p/>
* Must be called before 'run'. If an argument with given name has already been provided, it's