summaryrefslogtreecommitdiffstats
path: root/tools/scripts/java_tests_file.template
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2009-09-25 15:52:52 -0700
committerXavier Ducrohet <xav@android.com>2009-09-27 18:08:00 -0700
commitc51d184216d8fa0ea0fd6f0f7eb7959afd8faae2 (patch)
tree1787ba0a8356386190e726ffaa5ffbbe562a2ed9 /tools/scripts/java_tests_file.template
parentbad9ac7f373f5585ee6e43926b21c470d07663f8 (diff)
downloadandroid_development-c51d184216d8fa0ea0fd6f0f7eb7959afd8faae2.tar.gz
android_development-c51d184216d8fa0ea0fd6f0f7eb7959afd8faae2.tar.bz2
android_development-c51d184216d8fa0ea0fd6f0f7eb7959afd8faae2.zip
Update the project creation (from the command line):
- Make the distinction between the activity class name, manifest entry, fully-qualified name, and tested activity for the template place-holders. Test activity names now directly contain the full name (including the "Test" prefix) instead of the template adding it. This is required by the new 'create test-project' - New action: create test-project This requires a path to the main project. It reads the package, activity name and target from the main project. The activity is read from the manifest and can be in a more complex form than previously expected (for instance .subpackage.MyClass, instead of simply MyClass). This is what required the re-work the activity related template place holders. Options: -m --main Location path of the project to test, relative to the new project [required] -n --name Project name -p --path Location path of the new project [required] Example: for 2 projects MyProject and MyTests located in the same folder, calling from their parent folder. android create test-project -p MyTests -m ../MyProject - build.properties now only gets application.package for older targets as the new one get it directly from XPath - Remove AndroidXPathFactory from the anttasks project as it was already in sdklib which is a dependency. - Removed IntelliJ templates for the SDK. We haven't supported them for a while, and now that IntelliJ has built-in support for Android, it's not that useful anymore. While there is the command line parameters for 'update test-project' it's not yet implemented. Change-Id: I663d4cb7f439bb2abfe866f893e58f4d13aff975
Diffstat (limited to 'tools/scripts/java_tests_file.template')
-rw-r--r--tools/scripts/java_tests_file.template8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/scripts/java_tests_file.template b/tools/scripts/java_tests_file.template
index c6fa8736f..08d6f9b5d 100644
--- a/tools/scripts/java_tests_file.template
+++ b/tools/scripts/java_tests_file.template
@@ -9,13 +9,13 @@ import android.test.ActivityInstrumentationTestCase2;
* <p/>
* To run this test, you can type:
* adb shell am instrument -w \
- * -e class PACKAGE.ACTIVITY_NAMETest \
+ * -e class ACTIVITY_FQ_NAME \
* PACKAGE.tests/android.test.InstrumentationTestRunner
*/
-public class ACTIVITY_NAMETest extends ActivityInstrumentationTestCase2<ACTIVITY_NAME> {
+public class ACTIVITY_CLASS_NAME extends ActivityInstrumentationTestCase2<ACTIVITY_TESTED_CLASS_NAME> {
- public ACTIVITY_NAMETest() {
- super("PACKAGE", ACTIVITY_NAME.class);
+ public ACTIVITY_CLASS_NAME() {
+ super("PACKAGE", ACTIVITY_TESTED_CLASS_NAME.class);
}
} \ No newline at end of file