ADB executes wrong test because of wrong package name.
If test has this project package com.my.package.app.test, then the command will be am instrument -w com.my.package.app.test.test.
Tests in the android-example-project have the package name com.example.android_example but ADB instrument command expects the name to be com.example.android_example.test.
Fixes:
ADB executes wrong test because of wrong package name. If test has this project package
com.my.package.app.test
, then the command will beam instrument -w com.my.package.app.test.test
.Tests in the
android-example-project
have the package namecom.example.android_example
but ADB instrument command expects the name to becom.example.android_example.test
.