简体   繁体   中英

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

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM