简体   繁体   中英

React Native: How to setup automated integration tests?

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.

我可以推荐您使用以下集成测试工具进行反应原生: Cavy

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.

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM