Troubleshooting
Seems slightly related to #187, although that describes a different issue.
Issue description
When using test_repetition_mode: "retry_on_failure", if there are actual test failures, Bitrise reports that all tests have succeeded and the step does not fail.
- xcode-test:
title: Unit Tests
inputs:
- project_path: "$WORKSPACE"
- scheme: "$SCHEME_UNIT"
- destination: "$DEST_IPAD"
- test_repetition_mode: "retry_on_failure"
- maximum_test_repetitions: 3
Bitrise info
These are the test results with retry_on_failure enabled (i.e., the configuration above). As you can see, they are incorrectly reported as "succeeded" even though there are failures.
- xcode-test:
title: Unit Tests
inputs:
- project_path: "$WORKSPACE"
- scheme: "$SCHEME_UNIT"
- destination: "$DEST_IPAD"
# RETRY ON FAILURE
- test_repetition_mode: "retry_on_failure"
- maximum_test_repetitions: 3

These are the test results without specifying test_repetition_mode and maximum_test_repetitions. As you can see, the failure is correctly reported.
- xcode-test:
title: Unit Tests
inputs:
- project_path: "$WORKSPACE"
- scheme: "$SCHEME_UNIT"
- destination: "$DEST_IPAD"
# DO NOT RETRY

Steps to reproduce
- Create an Xcode project with unit tests
- Write tests that fail
- Add the following to your
xcode-test step:
- test_repetition_mode: "retry_on_failure"
- maximum_test_repetitions: 3
xcode-test reports that test succeeded, despite having failures.
- Remove
test_repetition_mode and maximum_test_repetitions
- Tests now report as failed.
Troubleshooting
Seems slightly related to #187, although that describes a different issue.
Issue description
When using
test_repetition_mode: "retry_on_failure", if there are actual test failures, Bitrise reports that all tests have succeeded and the step does not fail.Bitrise info
retry_on_failureenabled, passes (incorrect): https://app.bitrise.io/build/f046cabd-5961-4807-90b1-d2a5b93c590c#?tab=logretry_on_failuredisabled, fails (correct): https://app.bitrise.io/build/41e9bbcb-9af0-45f5-8a64-b8682589771e#?tab=logThese are the test results with
retry_on_failureenabled (i.e., the configuration above). As you can see, they are incorrectly reported as "succeeded" even though there are failures.These are the test results without specifying
test_repetition_modeandmaximum_test_repetitions. As you can see, the failure is correctly reported.Steps to reproduce
xcode-teststep:xcode-testreports that test succeeded, despite having failures.test_repetition_modeandmaximum_test_repetitions