【问题标题】:React Native: How to setup automated integration tests?React Native:如何设置自动化集成测试?
【发布时间】:2017-03-16 12:33:18
【问题描述】:

我是测试新手,我的任务是为 iOS 和 Android 的 React-Native 应用程序设置和编写自动化集成测试。 我在设置集成测试时遇到了严重问题。我应该使用什么框架?我找到了一些教程,但他们觉得大部分都过时了。将 Appium 与 Travis CI 一起使用是否可行?我发现了一些使用 Mocha 和 Chai 编写测试的示例。 (http://tech.taskrabbit.com/blog/2015/11/08/react-native-integration-tests/ 这似乎是最好的)。非常感谢您提供的任何帮助。

【问题讨论】:

标签: testing react-native automated-tests integration-testing


【解决方案1】:

我可以向您推荐以下用于 react native 的集成测试工具:Cavy

【讨论】:

    【解决方案2】:

    我们最近开始使用来自 Wix 的 Detox,它允许对 React Native 应用程序进行灰盒端到端测试。它还支持 Travis 等 CI 平台。

    【讨论】:

      【解决方案3】:

      这是我使用 Wix 中的 Detox 自动执行 React Native 应用程序 e2e 的 POC 任务的示例 github 存储库。希望它会有所帮助:https://github.com/saifsms91/DetoxAutomationPoc

      此外,您可以参考这个 Stackoverflow 问题来自动化 React Native App:

      Guide to automation framework in detox : React Native?

      【讨论】:

        猜你喜欢
        • 2010-10-05
        • 2018-02-17
        • 2022-11-16
        • 2019-04-21
        • 2019-12-11
        • 1970-01-01
        • 2018-11-23
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多