Skip to content

Commit

Permalink
added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulnr7 committed Oct 18, 2023
1 parent a9d3361 commit 80bc665
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/e2e/stepsToRunE2eTests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Description

How to run the e2e tests?

The framework used is detox + jest.

Pre-requisite is that you were able to build the local versions of the Yoroi mobile application for the iOS and Android platforms.

There are several scripts for running the tests in different modes like the nightly or dev builds. We will discuss taking the example of nightly:debug version here.

## MacOS
Set up the simulator device using Xcode. Preferably set up iPhone 14 with lates iOS version
Run `e2e:build:ios:nightly:debug` to build and install the app to simulator
Run `e2e:test:ios:nightly:debug` to execute the tests. You can find the tests in `packages/e2e/tests/_ios`

## Android
Set up the virtual device device using Android Studio. Preferably set up Pixel6 with API level 31. Name the device as Pixel_6
Run `e2e:build:android:nightly:debug` to build and install the app to simulator
Run `e2e:test:android:nightly:debug` to execute the tests. You can find the tests in `packages/e2e/tests/_ios`

0 comments on commit 80bc665

Please sign in to comment.