unplugged-vendor/packages/apps/Car/libs/car-messenger-common/tests/unit
2025-10-06 13:59:42 +00:00
..
src/com.android.car.messenger.common Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
Android.bp Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
AndroidManifest.xml Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
README.md Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00

Instructions for running unit tests

Build unit test module

m car-messenger-common-lib-unit-tests

Install resulting apk on device

adb install -r -t $OUT/testcases/car-messenger-common-lib-unit-tests/arm64/car-messenger-common-lib-unit-tests.apk

Run all tests

adb shell am instrument -w com.android.car.messenger.common.tests.unit

Run tests in a class

adb shell am instrument -w -e class com.android.car.messenger.common.<classPath> com.android.car.messenger.common.tests.unit

Run a specific test

adb shell am instrument -w -e class com.android.car.messenger.common.<classPath>#<testMethod> com.android.car.messenger.common.tests.unit

More general information can be found at http://developer.android.com/reference/android/support/test/runner/AndroidJUnitRunner.html