In some cases the test package name will be determined wrongly, because the package name of the to be tested classes is different from the correct test package name.
Adding an option to override the test package can solve this issue.
ADB will then throw an error like this Unable to find instrumentation info for: ComponentInfo{my.testpackage.test/androidx.test.runner.AndroidJUnitRunner} if the determined package name my.testpackage.test is incorrect.
In some cases the test package name will be determined wrongly, because the package name of the to be tested classes is different from the correct test package name.
Adding an option to override the test package can solve this issue.
ADB will then throw an error like this
Unable to find instrumentation info for: ComponentInfo{my.testpackage.test/androidx.test.runner.AndroidJUnitRunner}
if the determined package namemy.testpackage.test
is incorrect.