Unit tests with Android Studio and Gradle?

前端 未结 2 1080
后悔当初
后悔当初 2020-12-31 12:11

How can I add unit tests to my Android projects in Android Studio (IntelliJ) easily?

To be more exact: I want to add a folder with test code (JUnit 4) and execute th

2条回答
  •  情深已故
    2020-12-31 12:47

    I think the answer should be now already in Android Studio 1.1 (and current gradle plugin). They introduced unit test support. It's still experimental, but less so than our previous efforts here :) See here.

提交回复
热议问题