Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.
Join the Beta!

Intelligent Test Runner for Swift is in beta.

Compatibility

Intelligent Test Runner is only supported on dd-sdk-swift>= 2.2.0.

Setup

Prior to setting up Intelligent Test Runner, set up Test Visibility for Swift. The code coverage option must also be enabled in the test settings of your scheme or test plan, or –enable-code-coverage must be added to your Swift test command (if using a SPM target).

If you are reporting data through the Agent, use v6.40+/v7.40+.

To enable Intelligent Test Runner, set the following environment variables:

DD_TEST_RUNNER
Enables or disables the instrumentation of tests. Set this value to $(DD_TEST_RUNNER) so you can enable and disable test instrumentation with a environment variable defined outside of the test process (for example, in the CI build).
Default: false
Recommended: $(DD_TEST_RUNNER)
DD_APPLICATION_KEY (Required)
The Datadog Application key used to query the tests to be skipped.
Default: (empty)

UI activation

In addition to setting the environment variables, you or a user in your organization with “Intelligent Test Runner Activation” permissions must activate the Intelligent Test Runner on the Test Service Settings page.

Intelligent test runner enabled in test service settings in the CI section of Datadog.

Further Reading

Documentation, liens et articles supplémentaires utiles: