Integration test for an orb command that runs even on failure

i.e. a command step with when: always

I’m writing an orb with a command that will run when previous steps have failed. In order to test this behavior I have an integration test with a step that fails followed by the orb command followed by a test step for the expected behavior. This all works great however the job still posts as failed. I’d like to somehow mark the job as success once the expected behavior is verified. Is there any way to do this? I’ve tried circleci-agent step halt but that does not ‘undo’ the failed state.

1 Like