Managing failures in steps

We’re wondering how to deal with expected failures in steps.
Consider this scenario:
We have a set of tests where some are omitted from the execution because they are in progress, or pending.
This leads to a failure that looks like this:

Tests on API-21(AVD) - 5.0.2 failed: Test run failed to complete. Expected 167 tests, received 164
:app:connectedAetvGoogleMobileDebugAndroidTest FAILED
FAILURE: Build failed with an exception.

The thing is, we expect that failure, and it’s ok, but we don’t want it to fail our whole build.
Is there a way to control this?

1 Like

Absolutely!

All you have to do is: add an is_skippable: true flag to the Step.

Docs: http://devcenter.bitrise.io/tips-and-tricks/dont-mark-build-failed-if-step-fails/

If you have any questions, just let us know!