I found my answer. I need to add the Spoon Gradle Plugin
Running multiple test with connectedCheck using Espresso
-
24-09-2022 - |
Question
I am using Espresso. I have multiple tests written, all in different classes but the same project. When I run I remove all but one class and try running, it runs fine. However, when I have them all in my project and try running the second one always fails.
All of my test are pretty basic right now. They just have setUp()
and one testMethod()
.
Can someone tell me what I am doing wrong?
NOTE: I run via terminal with command gradle appName:cC
Solution
OTHER TIPS
That's one option, but you don't have to, you can still use gradle command connectedCheck
Find out how to run the tests (including running tests for a specific module and on multiple devices) here at this Google example:
https://github.com/googlesamples/android-testing-templates/tree/master/AndroidTestingBlueprint