Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I make a step fail, when a unit test fails?

Fabian Kulman September 14, 2018

step.JPG

How can I make a step fail, when a unit test fails? In BitBucket the status is green even though unit tests are failing. 

 

1 answer

1 vote
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 1, 2018

Hi Fabian,

Pipelines steps will finish with the exit code of the commands being run. So if your step is always passing, it means the command running your unit tests is returning 0 as an exit code.

Can you add more details about the commands your running, so we can determine why the exit code is always 0?

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events