Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

with-maestro

EAS build and test with Maestro example

Supports Expo iOS Supports Expo Android

Prerequisite: Install the Maestro app following these instructions.

🚀 Quick start

  • Install with yarn or npm install.

🚀 Build and test locally with Expo Go

  • Start the app in Expo Go:
    • Android: yarn start to start the packager, then press a to install and start Expo Go on Android
    • iOS: yarn start to start the packager, then press i to install and start Expo Go on iOS
  • In a separate terminal, execute a Maestro test flow:
    • Home screen test: maestro test maestro/expo_go/home.yml
    • Expanding component test: maestro test maestro/expo_go/expand_test.yml
  • Once the test flow starts and Expo Go starts, select "Reload" or the app name from the Expo Go UI in the simulator/emulator. Once the dev menu is hidden and this app is visible, the test flow will continue.

🚀 Build and test locally with a development build

  • Build the development build and start it on your simulator/emulator:
    • Android: yarn android.
    • iOS: yarn ios.
  • In a separate terminal, execute a Maestro test flow:
    • Home screen test: maestro test maestro/dev_build/home.yml
    • Expanding component test: maestro test maestro/dev_build/expand_test.yml

🚀 Build and test on EAS

Note: The Maestro flows in the maestro/dev_build folder must have the app's package name (Android) or bundle identifier (iOS) defined. To make this example work out of the box without changes, the app.json and the Maestro flows for dev builds are preconfigured with these values set to dev.expo.eastestsexample. In your actual development, these should be changed to the correct values for your app.

Deploy

Deploy on all platforms with Expo Application Services (EAS).

  • Deploy the website: npx eas-cli deployLearn more
  • Deploy on iOS and Android using: npx eas-cli buildLearn more

📝 Further information