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

Skip JUnit if no tests found

Sentinel July 23, 2019

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 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

Sentinel July 24, 2019

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
AUG Leaders

Atlassian Community Events