tuist test run
Tests a project
Arguments#
scheme Optional#
Environment variableTUIST_TEST_SCHEME
The scheme to be tested. By default it tests all the testable targets of the project in the current directory.
tuist test run [scheme]
clean Optional#
Environment variableTUIST_TEST_CLEAN
When passed, it cleans the project before testing it.
tuist test run --clean
tuist test run -c
no-clean Optional#
Environment variableTUIST_TEST_CLEAN
When passed, it cleans the project before testing it.
tuist test run --no-clean
no-upload Optional#
Environment variableTUIST_TEST_NO_UPLOAD
When passed, the result necessary for test selection is not persisted to the server.
tuist test run --no-upload
tuist test run -n
no-no-upload Optional#
Environment variableTUIST_TEST_NO_UPLOAD
When passed, the result necessary for test selection is not persisted to the server.
tuist test run --no-no-upload
path Optional#
Environment variableTUIST_TEST_PATH
The path to the directory that contains the project to be tested.
tuist test run --path [path]
tuist test run -p [path]
device Optional#
Environment variableTUIST_TEST_DEVICE
Test on a specific device.
tuist test run --device [device]
tuist test run -d [device]
platform Optional#
Environment variableTUIST_TEST_PLATFORM
Test on a specific platform.
tuist test run --platform [platform]
os Optional#
Environment variableTUIST_TEST_OS
Test with a specific version of the OS.
tuist test run --os [os]
tuist test run -o [os]
rosetta Optional#
Environment variableTUIST_TEST_ROSETTA
When passed, append arch=x86_64 to the 'destination' to run simulator in a Rosetta mode.
tuist test run --rosetta
no-rosetta Optional#
Environment variableTUIST_TEST_ROSETTA
When passed, append arch=x86_64 to the 'destination' to run simulator in a Rosetta mode.
tuist test run --no-rosetta
configuration Optional#
Environment variableTUIST_TEST_CONFIGURATION
The configuration to be used when testing the scheme.
tuist test run --configuration [configuration]
tuist test run -C [configuration]
skip-ui-tests Optional#
Environment variableTUIST_TEST_SKIP_UITESTS
When passed, it skips testing UI Tests targets.
tuist test run --skip-ui-tests
no-skip-ui-tests Optional#
Environment variableTUIST_TEST_SKIP_UITESTS
When passed, it skips testing UI Tests targets.
tuist test run --no-skip-ui-tests
skip-unit-tests Optional#
Environment variableTUIST_TEST_SKIP_UNITTESTS
When passed, it skips testing Unit Tests targets.
tuist test run --skip-unit-tests
no-skip-unit-tests Optional#
Environment variableTUIST_TEST_SKIP_UNITTESTS
When passed, it skips testing Unit Tests targets.
tuist test run --no-skip-unit-tests
result-bundle-path Optional#
Environment variableTUIST_TEST_RESULT_BUNDLE_PATH
Path where test result bundle will be saved.
tuist test run --result-bundle-path [result-bundle-path]
tuist test run -T [result-bundle-path]
derived-data-path OptionalDeprecated#
Environment variableTUIST_TEST_DERIVED_DATA_PATH
Overrides the folder that should be used for derived data when testing a project.
tuist test run --derived-data-path [derived-data-path]
retry-count OptionalDeprecated#
Environment variableTUIST_TEST_RETRY_COUNT
Tests will retry <number> of times until success. Example: if 1 is specified, the test will be retried at most once, hence it will run up to 2 times.
tuist test run --retry-count [retry-count]
test-plan Optional#
Environment variableTUIST_TEST_TEST_PLAN
The test plan to run.
tuist test run --test-plan [test-plan]
test-targets Optional#
Environment variableTUIST_TEST_TEST_TARGETS
The list of test identifiers you want to test. Expected format is TestTarget[/TestClass[/TestMethod]]. It is applied before --skip-testing
tuist test run --test-targets [test-targets]
skip-test-targets Optional#
Environment variableTUIST_TEST_SKIP_TEST_TARGETS
The list of test identifiers you want to skip testing. Expected format is TestTarget[/TestClass[/TestMethod]].
tuist test run --skip-test-targets [skip-test-targets]
filter-configurations Optional#
Environment variableTUIST_TEST_CONFIGURATIONS
The list of configurations you want to test. It is applied before --skip-configuration
tuist test run --filter-configurations [filter-configurations]
skip-configurations Optional#
Environment variableTUIST_TEST_SKIP_CONFIGURATIONS
The list of configurations you want to skip testing.
tuist test run --skip-configurations [skip-configurations]
binary-cache Optional#
Environment variableTUIST_TEST_BINARY_CACHE
Ignore binary cache and use sources only.
tuist test run --binary-cache
no-binary-cache Optional#
Environment variableTUIST_TEST_BINARY_CACHE
Ignore binary cache and use sources only.
tuist test run --no-binary-cache
selective-testing Optional#
Environment variableTUIST_TEST_SELECTIVE_TESTING
When --no-selective-testing is passed, tuist runs all tests without using selective testing.
tuist test run --selective-testing
no-selective-testing Optional#
Environment variableTUIST_TEST_SELECTIVE_TESTING
When --no-selective-testing is passed, tuist runs all tests without using selective testing.
tuist test run --no-selective-testing
generate-only Optional#
Environment variableTUIST_TEST_GENERATE_ONLY
When passed, it generates the project and skips testing. This is useful for debugging purposes.
tuist test run --generate-only
no-generate-only Optional#
Environment variableTUIST_TEST_GENERATE_ONLY
When passed, it generates the project and skips testing. This is useful for debugging purposes.
tuist test run --no-generate-only
without-building Optional#
Environment variableTUIST_TEST_WITHOUT_BUILDING
When passed, run the tests without building.
tuist test run --without-building
no-without-building Optional#
Environment variableTUIST_TEST_WITHOUT_BUILDING
When passed, run the tests without building.
tuist test run --no-without-building
build-only Optional#
Environment variableTUIST_TEST_BUILD_ONLY
When passed, build the tests, but don't run them
tuist test run --build-only
no-build-only Optional#
Environment variableTUIST_TEST_BUILD_ONLY
When passed, build the tests, but don't run them
tuist test run --no-build-only
skip-quarantine Optional#
Environment variableTUIST_TEST_SKIP_QUARANTINE
When passed, the quarantine feature is disabled and tests run regardless of whether they are quarantined on the server.
tuist test run --skip-quarantine
no-skip-quarantine Optional#
Environment variableTUIST_TEST_SKIP_QUARANTINE
When passed, the quarantine feature is disabled and tests run regardless of whether they are quarantined on the server.
tuist test run --no-skip-quarantine
shard-max Optional#
Environment variableTUIST_TEST_SHARD_MAX
Maximum number of shards to distribute tests across.
tuist test run --shard-max [shard-max]
shard-min Optional#
Environment variableTUIST_TEST_SHARD_MIN
Minimum number of shards.
tuist test run --shard-min [shard-min]
shard-total Optional#
Environment variableTUIST_TEST_SHARD_TOTAL
Exact number of shards (mutually exclusive with --shard-min/--shard-max). With suite granularity, the final shard is the catch-all.
tuist test run --shard-total [shard-total]
shard-max-duration Optional#
Environment variableTUIST_TEST_SHARD_MAX_DURATION
Target maximum duration per shard in milliseconds.
tuist test run --shard-max-duration [shard-max-duration]
shard-granularity Optional#
Environment variableTUIST_TEST_SHARD_GRANULARITY
Sharding granularity level: module (default) or suite.
tuist test run --shard-granularity [shard-granularity]
shard-reference Optional#
Environment variableTUIST_SHARD_REFERENCE
Explicit shard reference. Derived from environment variables for supported CI providers.
tuist test run --shard-reference [shard-reference]
shard-skip-upload Optional#
Environment variableTUIST_TEST_SHARD_SKIP_UPLOAD
Skip uploading test products to remote storage. Use when you provide test products to shard runners yourself, for example via shared volumes.
tuist test run --shard-skip-upload
no-shard-skip-upload Optional#
Environment variableTUIST_TEST_SHARD_SKIP_UPLOAD
Skip uploading test products to remote storage. Use when you provide test products to shard runners yourself, for example via shared volumes.
tuist test run --no-shard-skip-upload
shard-archive-path Optional#
Environment variableTUIST_TEST_SHARD_ARCHIVE_PATH
Path to a locally managed shard archive. In build-for-testing mode Tuist writes the optimized archive there; in shard execution mode Tuist extracts it instead of downloading test products from remote storage.
tuist test run --shard-archive-path [shard-archive-path]
shard-index Optional#
Environment variableTUIST_SHARD_INDEX
The zero-based shard index to execute.
tuist test run --shard-index [shard-index]
inspect-mode Optional#
Environment variableTUIST_INSPECT_TEST_MODE
Inspect mode: 'local' parses the xcresult on this machine, 'remote' uploads it for server-side processing, 'off' skips test analysis entirely (no xcresult parsing, archiving, or upload — the Tests dashboard is not populated). When omitted, defaults to 'remote' for tuist-hosted instances and 'local' for self-hosted ones.
tuist test run --inspect-mode [inspect-mode]
passthrough-xcode-build-arguments Optional#
Arguments that will be passed through to xcodebuild. Use -- followed by xcodebuild arguments. Example: tuist test -- -destination 'platform=iOS Simulator,name=iPhone 15' -parallel-testing-enabled YES
tuist test run [passthrough-xcode-build-arguments]