-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
Description
Troubleshooting
- I've searched discuss.bitrise.io for possible solutions.
- Which version of the step is effected? Latest, 4.x
- Is the issue reproducible with the latest version? YES
- Does the issue happen sporadically, or every time? EVERY TIME
- Is the issue reproducible locally by following our local debug guide? YES
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: 3Bitrise info
- Build URL:
- With
retry_on_failureenabled, passes (incorrect): https://app.bitrise.io/build/f046cabd-5961-4807-90b1-d2a5b93c590c#?tab=log - With
retry_on_failuredisabled, fails (correct): https://app.bitrise.io/build/41e9bbcb-9af0-45f5-8a64-b8682589771e#?tab=log
- With
- Bitrise Support enabled: YES
- Logs: attaching screenshots below
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: 3These 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 RETRYSteps to reproduce
- Create an Xcode project with unit tests
- Write tests that fail
- Add the following to your
xcode-teststep:
- test_repetition_mode: "retry_on_failure"
- maximum_test_repetitions: 3xcode-testreports that test succeeded, despite having failures.- Remove
test_repetition_modeandmaximum_test_repetitions - Tests now report as failed.

