Convert step failure into a warning

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 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?

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.