문제

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