Fail-Fast

In Fail-Fast mode, Redefine optimizes your CI builds by selectively running tests related to the code changes, similar to Optimize mode. These tests are executed until the specified confidence is reached. If the confidence level is not configured, Redefine will use the default level. If none of these tests fail within the given confidence level, the CI build proceeds to run the entire test suite to ensure full coverage. However, if any of the tests fail before reaching the confidence level, the build is halted immediately, providing early feedback on the introduced code changes.

This approach is suitable for those who cannot overlook even the slightest chance of missing a failed test. This leads to quicker feedback time on test failures with better resource utilization on failed CI builds. However, compared to Optimize Mode, resource utilization may not be as optimal.

redefine install --fail-fast --<testing_framework>

Last updated