Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overriding (?) JUnit report file - azure pipelines #102

Open
Kammitora opened this issue Jan 12, 2022 · 0 comments
Open

Overriding (?) JUnit report file - azure pipelines #102

Kammitora opened this issue Jan 12, 2022 · 0 comments

Comments

@Kammitora
Copy link

Kammitora commented Jan 12, 2022

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant