# Convert step failure into a warning

**URL:** <https://discuss.circleci.com/t/convert-step-failure-into-a-warning/45090>\
**Category:** Running Tests\
**Created:** [August 16, 2022, 11:03am UTC](https://discuss.circleci.com/t/convert-step-failure-into-a-warning/45090 "2022-08-16T11:03:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![philip](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/philip/32/30849_2.png) [@philip](https://discuss.circleci.com/u/philip)\
**Post date:** [August 16, 2022, 11:03am UTC](https://discuss.circleci.com/t/convert-step-failure-into-a-warning/45090/1 "2022-08-16T11:03:38Z")

</div>

I have a number of steps that are expected to fail, such as unit tests for features that aren’t implemented yet (TDD). Is there a way of converting that failed step into a warning, thus allowing the subsequent steps to continue? I’m aware of this [article](https://support.circleci.com/hc/en-us/articles/360057590591-Ignoring-A-Failure-In-A-Step) by CircleCI support but that causes the step to fail silently. This is not what I want, as I want this failure to be flagged as a warning.

Is this possible?

---

<div class="post-metadata">

**Author:** ![KyleTryon](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kyletryon/32/9977_2.png) [@KyleTryon](https://discuss.circleci.com/u/KyleTryon)\
**Post date:** [August 18, 2022, 6:44pm UTC](https://discuss.circleci.com/t/convert-step-failure-into-a-warning/45090/2 "2022-08-18T18:44:12Z")

</div>

Are you ok with a failure, as long as the rest of the steps continue?

You can set the `when` parameter on any “native” step and set the value to `always`. This means the step will run, even if the previous step has failed. However, at the end of the job you will still have a failed job. This would prevent your next job in a workflow from executing as normal too.
