Skip to main content

๐Ÿงช Testing

Test 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 โ†’

Testing Methodsโ€‹

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 ๐Ÿ“‹ Config properties if 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 is set in both places