Skip to main content

Testing

Run visual tests on your React Native builds in the cloud with the testing method that fits your workflow: Standard, EAS Update, or EAS Cloud Build.

Run a visual test with one command​

To run tests, use this guided testing command:

Terminal
npx sherlo test

For non-interactive commands, you can run directly:

  • npx sherlo test:standard - test app builds with bundled JavaScript
  • npx sherlo test:eas-update - test builds with OTA JavaScript updates - skip rebuilds
  • npx sherlo test:eas-cloud-build - automatically test builds created on Expo servers
Ready-to-run examples

Each testing method has a complete example project.

Browse examples on GitHub

Pick a testing method for your workflow​

Select a testing method based on your needs:

Description

Run visual tests on app builds with bundled JavaScript.

Workflow

Requirements

Options

OptionValueDescription
--android<path>Path to Android build (.apk)
--ios<path>Path to iOS build (.app, .tar.gz or .tar)
note

Options --android and --ios override the android and ios config properties if they are set in both places.

Usage

Run Sherlo to test builds with bundled JavaScript:

Terminal
npx sherlo test:standard

Try a complete example project with a GitHub Actions workflow included

Common options​

These options work with any testing command:

OptionValueDefaultDescription
--token<token>Authentication token for the project
--message<message>Custom message to label the test
--config<path>sherlo.config.jsonPath to the config file
--projectRoot<path>.Path to the root directory of your project
note

Option --token overrides config property if it is set in both places.