blob: da83d8ad30bc03c77cf28aebb9fc01ffd8517c6b [file] [log] [blame]
To build the tests you can use the following command at the root of your android source tree
$ make ManagedProvisioningTests
The test apk then needs to be installed onto your test device via for example
$ adb install -r out/target/product/shamu/data/app/ManagedProvisioningTests/ManagedProvisioningTests.apk
To run all tests:
$ adb shell am instrument -w com.android.managedprovisioning.tests/android.test.InstrumentationTestRunner
To run all tests in a specific class:
$ adb shell am instrument -w -e class com.android.managedprovisioning.<class> com.android.managedprovisioning.tests/android.test.InstrumentationTestRunner
To run a specific test:
$ adb shell am instrument -w -e class com.android.managedprovisioning.<class>#<test> com.android.managedprovisioning.tests/android.test.InstrumentationTestRunner
More general information can be found at
http://developer.android.com/reference/android/test/InstrumentationTestRunner.html