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

Where do I see the test reporting?

Rafael F_ May 17, 2022

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
Atlassian Team members are employees working across the company in a wide variety of roles.
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
AUG Leaders

Atlassian Community Events