Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 583
Denis Laca Avatar asked Mar 16 '17 12:03

Denis Laca


People also ask

Can integration testing be automated?

Just like unit tests, integration tests are mostly written by developers and can be automated, but they test completely different features. Integration tests are about observing how code sections behave together and “making sure that they speak the same language,” Schneider said.

Is detox better than Appium?

The comparison of the frameworks shows that Detox scores more points than Appium. Nevertheless, it has to be considered that the resulting ratings for the frameworks are very close to each other (112 vs. 99).

Can we automate React Native app using Appium?

React Native and Appium – Introduction to Test Automation. Having a single code base generate native applications for both iOS and Android is not a small feat. By enabling this, React Native has taken hybrid app development to the next level of performance, stability, and integration with operating systems.


1 Answers

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

like image 177
Tobias Lins Avatar answered Sep 30 '22 18:09

Tobias Lins