question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Junit report only contains results from last iteration

See original GitHub issue

When using newman with a data source file, the Junit report only contains the results for the last item in the file. The CLI output correctly shows the number of iterations, test scripts and assertions, while the Junit xml file only shows a single test case.

  1. Newman Version (can be found via newman -v): 4.5.7
  2. OS details (type, version, and architecture): Windows 10 64bit
  3. Are you using Newman as a library, or via the CLI? CLI
  4. Did you encounter this recently, or has this bug always been there: Always
  5. Expected behaviour: The JUnit report should contain results for all iterations.
  6. Command / script used to run Newman: newman run collection.json -d data.csv -r cli,junit
  7. Sample collection, and auxiliary files (minus the sensitive details): The sample collection has 1 request: https://postman-echo.com/get?iter={iter}
  8. Screenshots (if applicable):

image image image image

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

3reactions
Christian0411commented, Feb 10, 2020

Hey I was able to get all the iterations to report by using newman-reporter-junitfull. You can get it via npm npm install -g newman-reporter-junitfull

1reaction
sxmartincommented, Apr 14, 2022

Is there any update to this… we are also facing the same issue… junit report has only the last iteration out of the 73 iterations we ran. CLI seems to list all. We can try newman-junit-full… but is there any other alternate other than installing newman-junit-full? Thanks for the help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Junit Reports only showing the last class ran when executed ...
I can get the build.xml to report all of my classes defined by targets if I call test-all, but if i only want...
Read more >
Chapter 7. Reporting JUnit results - liveBook · Manning
This chapter covers various tools and techniques available for reporting JUnit test results, including extending JUnit to write your own custom reporting ......
Read more >
Junit report displays/counts multiple tests as one test - GitLab
My problem is that i have 3 errors in my junit with same name but different class and file. It only see the...
Read more >
Incorrect JUnit test count when multiple tests have the same ...
BAM-11366 - Bamboo counts and displays only once, tests with the same ... BAM-6990 - Need to handle duplicate test results from testng...
Read more >
JUnit 5 User Guide
a node in the test tree that contains other containers or tests as its children (e.g. ... Executed only if the previous assertion...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found