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

有帮助吗?

解决方案

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

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top