React Native: How to setup automated integration tests?

此生再无相见时 提交于 2020-06-10 03:46:28

问题


I'm new to testing and I've been given a task to set up and write automated integration tests for React-Native app for both iOS and Android. I'm having a serious trouble setting up integration tests. What frameworks should i use? I've found some tutorials but they felt mostly outdated. Is using Appium with Travis CI viable? I've found some examples using Mocha and Chai to write tests. (http://tech.taskrabbit.com/blog/2015/11/08/react-native-integration-tests/ this seems like the best one). I really appreciate any help you can offer.


回答1:


I can recommend you following integration test tool for react native: Cavy




回答2:


We've recently started using Detox from Wix which allows for gray box end-to-end testing of React Native apps. It also supports CI platforms like Travis.




回答3:


This is a sample github repository for the POC task I did for automating React Native app e2e using Detox from Wix .Hope it will be helpful : https://github.com/saifsms91/DetoxAutomationPoc.

Moreover you can refer this Stackoverflow question for automating React Native App:

Guide to automation framework in detox : React Native?



来源:https://stackoverflow.com/questions/42834230/react-native-how-to-setup-automated-integration-tests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!