排毒自动化框架指南: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 应用程序集成.
注意:我已经在detox和Wix 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