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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,463,375
Community Members
 
Community Events
176
Community Groups

Where do I see the test reporting?

Edited

I'm following the documentation here:

https://support.atlassian.com/bitbucket-cloud/docs/test-reporting-in-pipelines/

Created a pipeline like the example:


script:
- dotnet tool install -g trx2junit
- dotnet test --logger 'trx;LogFileName=log.trx'
after-script:
- export PATH="$PATH:/root/.dotnet/tools"
- trx2junit ./TestResults/*.trx


 

At the end I see this:


Finished scanning for test reports. Found 1 test report files.

Merged test suites, total number tests is 65, with 0 failures and 0 errors.

Uploading test results

Finished uploading test results.


However I don't see the results anywhere... Where should I see the uploaded files?
What's missing?

1 answer

1 accepted

1 vote
Answer accepted
Patrik S Atlassian Team May 19, 2022

Hello @Rafael F_ ,

Thank you for reaching out to Atlassian Community.

As per our documentation "The Tests tab will only show if you have failed tests to review". Since all your tests were successful, the test tab is not showing in your build.

In case you want to always have the ability to download the test file, you can use artifacts instead : 

- step: name: Build and test 
script:
- npm install
- npm test
- npm run build
artifacts: # defining the artifacts
- TestResults/*.trx

The artifacts will be available for download for 14 days, and after this period they will be deleted.

You can also refer to our official documentation related to artifacts using the following link :

Hope that helps! Let me know in case you have any questions.

Thank you, @Rafael F_ .

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events