排毒自动化框架指南:React Native?创建 End 2 端和集成测试框架 [英] Guide to automation framework in detox : React Native? Creating End 2 end and integration testing framework

查看:20
本文介绍了排毒自动化框架指南:React Native?创建 End 2 端和集成测试框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

detox 自动化测试,用于 react 原生应用,以创建 E2E 测试和集成测试.需要以下建议:

Automation testing on detox for react native apps to create E2E tests and integration tests. Need suggestion on the following:

  • 可以使用 TDD、BDD 来避免代码重构的最佳自动化框架.
  • 如何使用 detox 和 jest 为 Android 和 iOS 创建集成测试
  • 易于使用 TestRunner Mocha 或 Jest 或任何其他.
  • 执行测试后的任何报告机制.
  • 关于使用 CI/CD 进行 e2e 测试的排毒自动化的任何 POC.
  • 像 POM 这样的设计模式如何将其用于 React Native
  • 任何示例 detox 存储库,通过逐步方法将其与 RN 应用程序集成.

注意:我已经在detoxWix git repo 并成功启动演示项目.寻找一个框架模板,我可以在设计自己的框架时使用它作为参考.

Note: I have already installed the required dependency need in detox with Mocha from Wix git repo and successfully launched the demo project.Looking for a Framework template that I can use it as a reference in designing my own framework.

推荐答案

我会去开玩笑和排毒.您可以通过 在玩笑中配置项目.这样您就可以在同一次运行中执行它们.用于排毒的 CI/CD 记录良好并且有效非常适合 iOS.Android 在最常见的 CI/CD 平台上仍然无法实现

I would go for jest together with detox. You can use the same test executer for unit and integration tests by configuring projects in jest. This way you can execute them in the same run. CI/CD for detox is documented well and works great for iOS. Android is still not possible on the most common CI/CD platforms

这篇关于排毒自动化框架指南:React Native?创建 End 2 端和集成测试框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆