このページは日本語には対応しておりません。随時翻訳に取り組んでいます。翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください。
Test Visibility is not available in the selected site () at this time.
Join the Beta!
Auto Test Retries is in public beta.
Overview
Test Visibility’s Auto Test Retries feature allows retrying failing tests up to N times to avoid failing your build due to flaky tests:
a failing test case is retried either until it passes successfully or until there are no more retry attempts left (in which case the build fails).
Setup
Ensure Test Visibility is configured for your test runs.
Compatibility
Configuration
After you have set up Test Visibility, you can configure Auto Test Retries from the Test Service Settings page.
The default behavior of the feature is to retry any failing test case up to 5 times.
This behavior can be fine-tuned with the following environment variables:
DD_CIVISIBILITY_FLAKY_RETRY_ONLY_KNOWN_FLAKES
- if this environment variable is set to true
, only the test cases that Test Visibility considers flaky are retried.DD_CIVISIBILITY_FLAKY_RETRY_COUNT
- can be set to any non-negative number to change the maximum number of retries per test case.
Explore results in the Test Visibility Explorer
You can query the retried tests in the Test Visibility Explorer: they have the @test.is_retry
tag set to true
(some of them may also have the @test.is_new
set to true
, which indicates they have been retried by the Early Flakiness Detection feature).
Troubleshooting
If you suspect there are any issues with Auto Test Retries, navigate to the Test Service Settings page, look for your test service, and click Configure. Disable Auto Test Retries by clicking on the toggle.
Further Reading