Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dotemacs/c0ae2c79c99ec06827411a6fa7909612 to your computer and use it in GitHub Desktop.
Save dotemacs/c0ae2c79c99ec06827411a6fa7909612 to your computer and use it in GitHub Desktop.
Looking at the integration/end to end testing for react-native

Looking at the integration/end to end testing

Calabash

Calabash http://calaba.sh/ seems to have been popular. But since it was develped by Xamarin team, who have been bought out by Microsoft, they’ve stopped further development on it and are hoping that the community picks up further maintenance & development.

The way calabash works: it installs the “server” on the device/simulator, be it iOS/Android, which provides a REST interface, which is then scripted via Ruby (but really Cucumber’s features and steps, which are in Ruby).

It seems pretty straightforward to set up, if you don’t mind using Cucumber. But the fact that it supports iOS up to version 11 and Android up to version 8, is it something that should be invested in? calaba.sh

Xamarin.UITest

Calabash team are pushing towards Xamarin.UITest, which is the prefered way now to write the tests in C# in Microsoft’s https://appcenter.ms/. However the underlying technology, a calabash test server is still what is being used to power the whole thing. But instead of using Ruby, you’ll have to use C# to script the Cucumber features & steps.

Not tried it yet, even though it has a 30 days free trial. The fact that you have to use C# is putting me off.

Detox

Detox https://github.com/wix/Detox, this seems like a React Native first solution, which has an embedded WebSocket server, with which the client communicates.

Has a guide on how to set it up for both iOS & Android, but as they say “early settlers get the arrows”, has anybody else tried it and how did you fare?

What I’m looking for is some feedback on what do you use/recommend?

Further links:

Microsoft has a further summary of all the open source solutions that can be used:

https://docs.microsoft.com/en-us/appcenter/migration/test-cloud/frameworks#the-tools-landscape-beyond-calabash

Testing section on react-native testing with ClojureScript, from two years ago:

https://github.com/gphilipp/react-native-with-clojurescript#testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment