NewmanPostman_VSTS_Task
NewmanPostman_VSTS_Task copied to clipboard
Overriding (?) JUnit report file - azure pipelines
Hello! I have a problem. I'm executing 12 postman collections with tests (over 50 tests in total) and I want export it in one file. When I want to publish it, I can see only few test results. I think the last postman collection the task is executing overrides previous test results.
How to export all test results?
Greetings!
code fragment:
- task: NewmanPostman@4
displayName: postman - tests
inputs:
collectionSourceType: 'file'
collectionFileSource: 'POSTMAN\collections'
Contents: '*.postman_collection.json'
environmentSourceType: 'none'
globalVars: |
var1=5
var1=10
reporters: 'junit'
reporterJUnitExport: 'POSTMAN\collections\junitReport.xml'
continueOnError: true
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit
testResultsFiles: 'POSTMAN\collections\junitReport.xml'