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,300,101
Community Members
 
Community Events
165
Community Groups

How do I make the test report scanner read reports from one path?

I have an issue were Maven/BitBucket are reporting 3 times the amount of tests results that I actually have. This is because the test report scanner is getting the information from several different directories. How can I configure the pipeline so only one report can be read by the Test Report Scanner?

1 answer

1 accepted

1 vote
Answer accepted

Hi @Dagoberto J_ Ortiz and welcome to the community.

The test report file scanner will begin searching from the base directory of your build /opt/atlassian/pipelines/agent/build and it will look for tests in any of these locations:

./**/surefire-reports/**/*.xml
./**/failsafe-reports/**/*.xml
./**/test-results/**/*.xml
./**/test-reports/**/*.xml

You can find more info on our documentation here.

I'm afraid that it is not possible to specify one path where the tests are being read from and exclude some of the above locations.

If you have test reports in the locations above that you don't want to be taken into account, is it possible to move them to a directory outside of these locations?

We have a feature request for what you're asking in our issue tracker:

You can leave a comment with your use case in that feature request for our development team to take into account.

Kind regards,
Theodora

Hi Theodora!

 

I appreciate your answer. Can you tell me how I can move these reports out of these locations so I can just have the one source?

Hi Dagoberto,

I'm afraid I'm not very familiar with Maven, so I don't know if and how that would be possible.

Are these reports generated by Maven during the build? You mentioned that you see 3 times the amount of test results you have. I assume then that there are 3 XML files generated for the same tests?

If that's the case, then I believe the direction to look into would be a) if this expected behavior for Maven and if all these 3 reports are needed b) if there is a way to configure Maven to generate only one, or generate some of the reports in a different location.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,255 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you