Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to end-to-end testing a react native app?

I have a react NATIVE app I would like to test in a end-to-end way. First, do you know if Cypress can do it ? I'm really not sure of it but in doubt I ask anyway. Second, I've seen Detox can do it but I have a Windows environment and it seems Detox is only supported by Mac or Linux. Do you have any solutions for my problem ?

Thanks in advance.

like image 258
Alex Avatar asked Nov 27 '22 17:11

Alex


1 Answers

Depending on how your React Native app is developed. You might be able to use Cypress for E2E testing. If you use Expo and Expo for Web, Cypress can test much of the functionality of your app.

Please see this blog and demo: https://justinnoel.dev/2019/12/27/e2e-testing-of-react-native-apps-using-cypress/

like image 171
Justin Noel Avatar answered Dec 06 '22 20:12

Justin Noel