Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,567
Community Members
 
Community Events
168
Community Groups

Skip JUnit if no tests found

Hello,

 

I have a JUnit parse step, which awaits for test results, but according to build script configuration the tests are not always generated.

Is there possibility to not fail build, if there are no tests?

As I know other other famous CI/CD tools provide such option "don't fail build if there are no test results".

 

Thanks

1 answer

0 votes
Jimmy Seddon Community Leader Jul 24, 2019

Hi @Sentinel ,

Out of the box I don't think there is an option that will allow this. 

At the same time, could you please provide a little more detail as to why tests aren't being generated?  Is it possible that your developers changes the location of the test results output without telling you?  It might be a simple as needing to change the directory you are looking for results in.

Just a thought.

I hope that helps!

-James

Hi @Jimmy Seddon ,

We have implemented some code, according to which build script will decide to execute tests or no and generate reports.

Current build configuration with JUnit Parses awaits, that test results are available everytime.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events