http://www.netmite.com/android/mydroid/cupcake/development/pdk/docs/instrumentation_testing.html
http://www.netmite.com/android/mydroid/development/pdk/docs/instrumentation_testing.html
http://blog.lv25.com/2009/06/android-simple-guide-to-unit-tests.html
http://ysl-paradise.blogspot.com/2009/03/testing-android-applications-part-1.html
http://www.netmite.com/android/mydroid/development/pdk/docs/instrumentation_testing.html
http://developer.android.com/intl/zh-TW/reference/android/test/InstrumentationTestRunner.html
http://developer.android.com/intl/zh-TW/reference/android/test/ActivityUnitTestCase.html
Take Calculator for example. You can find AndroidManifest.xml in packages/apps/Calculator/tests. It states:
package="com.android.calculator2.tests" and 2 instrumentation "CalculatorLauncherPerformance", "android.test.InstrumentationTestRunner".
So, if you want to run the test, type following:
$ ./adb shell am instrument -w com.android.calculator2.tests/. CalculatorLauncherPerformance
$ ./adb shell am instrument -w com.android.calculator2.tests/android.test.InstrumentationTestRunner
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment