title | description |
---|---|
@nrwl/detox:test executor |
Initiating your detox test suite. |
Initiating your detox test suite.
Options can be configured in workspace.json
when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#targets.
Alias(es): C
Type: string
Select a device configuration from your defined configurations, if not supplied, and there's only one configuration, detox will default to it
Type: number
Custom arguments to pass (through) onto the app every time it is launched.
Alias(es): a
Type: string
Artifacts (logs, screenshots, etc) root directory.
Type: string
Target which builds the application
Type: string
Possible values: enabled
, disabled
[iOS Only] Capture *.uihierarchy snapshots on view action errors and device.captureViewHierarchy() calls.
Type: boolean
Shutdown simulator when test is over, useful for CI scripts, to make sure detox exists cleanly with no residue
Alias(es): cp
Type: string
Specify Detox config file path. If not supplied, detox searches for .detoxrc[.js] or "detox" section in package.json
Alias(es): d
Type: boolean
Customize how long an action/expectation can take to complete before Detox starts querying the app why it is busy. By default, the app status will be printed if the action takes more than 10s to complete.
Type: string
A list of passthrough-arguments to use when (if) devices (Android emulator / iOS simulator) are launched by Detox.
Alias(es): n
Type: string
Override the device name specified in a configuration. Useful for running a single build configuration on multiple devices.
Type: boolean
Due to problems with the adb install command on Android, Detox resorts to a different scheme for install APK's. Setting true will disable that and force usage of adb install, instead.
Type: boolean
[Android Only] Launch Emulator with the specific -gpu [gpu mode] parameter.
Type: boolean
Android Only] Launch Emulator in headless mode. Useful when running on CI.
Type: boolean
Uses node's --inspect-brk flag to let users debug the jest/mocha test runner
Type: boolean
[Jest Only] Whether to output logs per each running spec, in real-time. By default, disabled with multiple workers.
Alias(es): l
Type: string
Possible values: fatal
, error
, warn
, info
, verbose
, trace
Log level: fatal, error, warn, info, verbose, trace
Type: boolean
Disable colors in log output
Type: string
Possible values: failing
, all
, none
Save logs during each test to artifacts directory. Pass "failing" to save logs of failing tests only.
Type: string
Possible values: all
, none
[iOS Only] Save Detox Instruments performance recordings of each test to artifacts directory.
Type: string
Possible values: all
, none
[Jest Only] Record tests and events timeline, for visual display on the chrome://tracing tool.
Type: string
Possible values: failing
, all
, none
Save screen recordings of each test to artifacts directory. Pass "failing" to save recordings of failing tests only.
Type: number
[Jest Circus Only] Re-spawn the test runner for individual failing suite files until they pass, or times at least.
Type: boolean
Reuse existing installed app (do not delete + reinstall) for a faster run.
Alias(es): o
Type: string
Test runner config file, defaults to 'e2e/mocha.opts' for mocha and 'e2e/config.json' for jest.
Type: string
Possible values: manual
, failing
, all
, none
Save screenshots before and after each test to artifacts directory. Pass "failing" to save screenshots of failing tests only.
Type: boolean
Use Detox' custom console-logging implementation, for logging Detox (non-device) logs. Disabling will fallback to node.js / test-runner's implementation (e.g. Jest / Mocha).
Type: number
Specifies number of workers the test runner should spawn, requires a test runner with parallel execution support (Detox CLI currently supports Jest).