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

Était-ce utile?

La solution

I found my answer. I need to add the Spoon Gradle Plugin

Autres conseils

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top