【问题标题】:Is there a way to execute a single Robolectric 2.3 test (using Gradle)?有没有办法执行单个 Robolectric 2.3 测试(使用 Gradle)?
【发布时间】:2014-08-11 08:46:10
【问题描述】:

我正在使用 Robolectric 2.3 并使用

执行我的单元测试
./gradlew testDebug

有没有办法执行单个测试或单个测试类?

【问题讨论】:

    标签: android android-gradle-plugin robolectric


    【解决方案1】:

    我在 Android Studio 中运行它们,您可以从那里执行一个测试、一个测试用例以及包中的所有测试: How to run unit tests with Android Studio

    关于命令行你可以看看这个插件: https://github.com/JCAndKSolutions/android-unit-test

    【讨论】:

    • android-unit-test 不再受支持它已被弃用@Eu​​gen Martynov
    猜你喜欢
    • 1970-01-01
    • 2013-09-04
    • 1970-01-01
    • 2022-10-20
    • 1970-01-01
    • 2022-01-22
    • 1970-01-01
    • 2010-12-05
    • 1970-01-01
    相关资源
    最近更新 更多