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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.