# Managing failures in steps

**URL:** <https://discuss.bitrise.io/t/managing-failures-in-steps/1285>\
**Category:** Question & Answer\
**Created:** [March 28, 2017, 5:02am UTC](https://discuss.bitrise.io/t/managing-failures-in-steps/1285 "2017-03-28T05:02:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nelsonramirez](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@nelsonramirez](https://discuss.bitrise.io/u/nelsonramirez)\
**Post date:** [March 28, 2017, 5:02am UTC](https://discuss.bitrise.io/t/managing-failures-in-steps/1285/1 "2017-03-28T05:02:46Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [March 28, 2017, 10:37am UTC](https://discuss.bitrise.io/t/managing-failures-in-steps/1285/2 "2017-03-28T10:37:06Z")

</div>

> [@nelsonramirez](#):
>
> we don’t want it to fail our whole build.Is there a way to control this?

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/](http://devcenter.bitrise.io/tips-and-tricks/dont-mark-build-failed-if-step-fails/)

If you have any questions, just let us know!
