Add sdklib tests to the adt-tests Unit tests.
Change-Id: Ieb4e722b1b5a29cef250e2cb5575a71e09f956c3
This commit is contained in:
1
tools/eclipse/plugins/.gitignore
vendored
1
tools/eclipse/plugins/.gitignore
vendored
@@ -53,4 +53,5 @@ com.android.ide.eclipse.ddms/src/com/android/ddmlib
|
|||||||
com.android.ide.eclipse.ddms/src/com/android/ddmuilib
|
com.android.ide.eclipse.ddms/src/com/android/ddmuilib
|
||||||
com.android.ide.eclipse.tests/kxml2-2.3.0.jar
|
com.android.ide.eclipse.tests/kxml2-2.3.0.jar
|
||||||
com.android.ide.eclipse.tests/unittests/com/android/ddmlib
|
com.android.ide.eclipse.tests/unittests/com/android/ddmlib
|
||||||
|
com.android.ide.eclipse.tests/unittests/com/android/sdklib
|
||||||
|
|
||||||
|
|||||||
@@ -31,16 +31,17 @@ import junit.framework.TestSuite;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class UnitTests {
|
public class UnitTests {
|
||||||
private static final String TEST_PACKAGE = "com.android.ide.eclipse";
|
private static final String TEST_PACKAGE = "com.android";
|
||||||
|
|
||||||
public static Test suite() {
|
public static Test suite() {
|
||||||
TestSuite suite = new TestSuite();
|
TestSuite suite = new TestSuite();
|
||||||
|
|
||||||
UnitTestCollector collector = new UnitTestCollector();
|
UnitTestCollector collector = new UnitTestCollector();
|
||||||
collector.addTestCases(suite, AndroidTestPlugin.getDefault(), TEST_PACKAGE);
|
collector.addTestCases(suite, AndroidTestPlugin.getDefault(), TEST_PACKAGE);
|
||||||
|
|
||||||
return suite;
|
return suite;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specialized test collector which will skip adding functional tests
|
* Specialized test collector which will skip adding functional tests
|
||||||
*/
|
*/
|
||||||
@@ -54,5 +55,4 @@ public class UnitTests {
|
|||||||
!testClass.getPackage().getName().startsWith(FuncTests.FUNC_TEST_PACKAGE);
|
!testClass.getPackage().getName().startsWith(FuncTests.FUNC_TEST_PACKAGE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,4 +51,5 @@ fi
|
|||||||
DEST=$BASE/unittests/com/android
|
DEST=$BASE/unittests/com/android
|
||||||
BACK=`back $DEST`
|
BACK=`back $DEST`
|
||||||
cpdir $DEST development/tools/ddms/libs/ddmlib/tests/src/com/android/ddmlib
|
cpdir $DEST development/tools/ddms/libs/ddmlib/tests/src/com/android/ddmlib
|
||||||
|
cpdir $DEST development/tools/sdkmanager/libs/sdklib/tests/com/android/sdklib
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user