Is there a way to execute a single Robolectric 2.3 test (using Gradle)?

亡梦爱人 提交于 2019-12-11 11:15:43

问题


I'm using Robolectric 2.3 and execute my unit tests with

./gradlew testDebug

Is there a way to execute a single test or a single test class?


回答1:


I'm running them in Android Studio and from there you can execute one test, one test case, all tests in the package: How to run unit tests with Android Studio

About command line you can take a look on this plugin: https://github.com/JCAndKSolutions/android-unit-test



来源:https://stackoverflow.com/questions/24329875/is-there-a-way-to-execute-a-single-robolectric-2-3-test-using-gradle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!