Usage

Dependencies

Examples

Building at scale

Commands

Contributors

Test your App

Whenever you don’t want to run tests from Xcode, for whatever reason, you have to resort to xcodebuild. While being a fine piece of software, it’s really hard to get all its arguments just right when you want to do something simple.

This is why we think we can do better - just by running tuist test we will run all test targets in your app. But not only that, we will automatically choose the right device for you - preferring the device you have already booted or choosing one with the correct iOS version and boot it for you. Easy!

Command

As we said, we strive for the test command being really simple - but it should be powerful enough to be useful for all your test-related wishes. Let’s see it in more detail below.

Test the project in the current directory

tuist test
Copy the content

Test a specific scheme

tuist test MyScheme
Copy the content

Test on a specific device and OS version

tuist test --device "iPhone X" --os 14.0
Copy the content

Standard commands

One of the benefits of using Tuist over other automation tools is that developers can get familiar with a set of commands that they can use in any Tuist project.

Arguments

ArgumentShortDescriptionValuesDefaultRequired

--generate

Description:

Force the generation of the project before testing.

Force the generation of the project before testing.

No

--clean

Description:

When passed, it cleans the project before testing it.

When passed, it cleans the project before testing it.

No

--path

-p

Description:

The path to the directory that contains the project to be tested.

-p

The path to the directory that contains the project to be tested.

No

--device

-d

Description:

Test on a specific device.

-d

Test on a specific device.

No

--os

-o

Description:

Test with a specific version of the OS.

-o

Test with a specific version of the OS.

No

--configuration

-C

Description:

The configuration to be used when building the scheme.

-C

The configuration to be used when building the scheme.

No

By using this website, you agree to our cookie policy.