【问题标题】:How to set teamcity to run android tests for every build如何设置 teamcity 为每个构建运行 android 测试
【发布时间】:2016-07-05 01:09:32
【问题描述】:

我在 project/src/java/test.project.example/ 中有以下测试。当我将一些文件提交到存储库 teamcity 时,请检查并构建 apk 文件。所以我希望 teamcity 也从 project/src/java/test.project.example/ 运行所有测试。我该怎么做? 测试示例:

public class ContentIdsParserTest extends AndroidTestCase {
  public void testParser() {
    assert(somethingExp,somethingReal);
  }
}

【问题讨论】:

    标签: android gradle teamcity


    【解决方案1】:

    在您的 CI 配置中指定要运行的 gradle 任务时,将 testRelease(或 testDebug 或您想要的任何特定构建变体)添加到任务列表中。这将运行单元测试。有关详细信息,请参阅 Android unit test documentation

    【讨论】:

      猜你喜欢
      • 2014-04-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-02
      • 1970-01-01
      相关资源
      最近更新 更多