【问题标题】:How can we run the test cases in Android我们如何在 Android 中运行测试用例
【发布时间】:2019-05-17 10:09:57
【问题描述】:

我是 android 新手,我正在做单元测试。我们不知道在 android 中检查或编译单元案例。请给我建议。

【问题讨论】:

    标签: java android unit-testing


    【解决方案1】:

    在 android 上进行单元测试非常简单。请按照这些链接在 Google 代码实验室中使用 Espresso、Junit、Mockito 练习和实施单元测试。

    初学者 Codelab:https://codelabs.developers.google.com/codelabs/android-training-unit-tests/index.html?index=..%2F..android-training#0

    高级代码实验室:https://codelabs.developers.google.com/codelabs/android-testing/#0

    Android 官方文档: https://developer.android.com/training/testing/unit-testing/local-unit-tests.html

    代码路径的分步指南:https://guides.codepath.com/android/UI-Testing-with-Espresso

    【讨论】:

      猜你喜欢
      • 2012-03-15
      • 2020-03-22
      • 2012-10-28
      • 1970-01-01
      • 2016-12-23
      • 1970-01-01
      • 1970-01-01
      • 2018-09-29
      • 2012-12-06
      相关资源
      最近更新 更多