Prerequisites: These tests must exist locally as YAML files.
momentic-mobile results upload
command.
- [tests…]: The tests to run. If not specified, selects all tests in the current project. You can specify multiple tests separated by spaces, test paths, or folder paths. You can also pass substrings to match test names.
Options
-c, --config <config>
Path to the Momentic configuration file. Defaults to momentic.config.yaml in
the current directory.
-y, --yes
Skip all confirmation prompts (defaults to true in CI).
-p, --parallel <parallel>
Number of tests to run in parallel. Defaults to 1.
--shard-count <shardCount>
Total number of shards to split the selected tests into. Defaults to 1 (no
sharding).
--shard-index <shardIndex>
Which shard to run (1-indexed). Defaults to 1.
This must be (\le) --shard-count. To run all tests across 2 CI workers, run
shard 1 on one worker and shard 2 on another:
--log-level <logLevel>
Set logging verbosity. One of: error, warn, info, debug.
--output-dir <outputDir>
Directory to store run artifacts (screenshots, logs, results). Defaults to the
project’s outputDir or ./test-results. The directory is cleared at the start
of a run.
--upload-results
Automatically upload test results to Momentic Cloud after the run (equivalent to
running momentic-mobile results upload <outputDir> after completion).
--channel <channel>
Override the default release channel for APK selection during this run (e.g.,
staging, dev). If omitted and no default channel is configured on the test,
Momentic will not install an APK on emulator initialization.
--tag <tag>
Override the version tag within the selected channel for APK selection. If
omitted, each test uses the default tag configured, or the latest uploaded APK
in the channel if no default exists.
--env <env>
Override the default environment for all tests during this run. The environment
name should exist in your Momentic project configuration. This option takes
precedence over the default environment configured on the test level.
--timeout-minutes <timeoutMinutes>
Maximum number of minutes to run tests before stopping. When the timeout is
reached, tests will stop and current results will be printed.
--local-avd-id
Force tests to use a specific local Android Virtual Device (AVD). Overrides all
other configuration at the test and environment level.
--local-apk-path
When used together with local-avd-id, override the APK that will be installed
on emulator initialization. This takes precedence over all other configuration
at the test and environment level.