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 standard builds
  • npx sherlo test:eas-update - test builds with dynamic JavaScript (OTA) updates
  • npx sherlo test:eas-cloud-build - test cloud builds created on Expo servers

Testing Methodsโ€‹

Select a testing method based on your needs:

Description

Test standard builds with bundled JavaScript code

Features

  • โœ… Tests builds stored locally
  • โš ๏ธ Requires new builds for each test run

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 stored locally:

Terminal
npx sherlo test:standard

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

Results Reviewโ€‹

Once the tests are complete, you can review the results in the Sherlo web application

Enjoy testing with Sherlo! ๐Ÿฅณ