【问题标题】:how to specify a filename pattern for tests in android-unit-test?如何在 android-unit-test 中为测试指定文件名模式?
【发布时间】:2013-10-24 11:06:55
【问题描述】:

有没有办法为 android-unit-test 指定模式?目前它似乎是*Test.class,但我希望它是The*.class

【问题讨论】:

    标签: android unit-testing testing android-testing


    【解决方案1】:

    这似乎可以解决问题:

    tasks.withType(Test) {
        scanForTestClasses = false
        include "**/*The*.class" // whatever Ant pattern matches your test class files
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-22
      相关资源
      最近更新 更多