Closed leonvangendt closed 8 years ago
Will look at this for the next release.
It would also be useful to me. I'm doing powershell script to call newman from a task scheduler for the postman collections. Similarly I want all tests to run and get all tests that failed in separate report.
I figured out a way to do this from powershell scripts. Parsing and producing a sum of output, total failures and total successes from each output file. And then sum of all into separate fle, emailing if test failed are > 0. Would be better however to have a flag like -e filename for output errors to file.
newman now (v3.x) has separate failure
and executions
array in json
reporter
newman run my-collection.json --reporters cli,json
The report will be saved in newman/html-run-report.html
@shamasis removed comment you were probably notified about, because I see that indeed the reporter options are right in the repo README. :)
Hi guys, for us Newman would be useful if it could output only failed results instead of both successes and failures.... The advantage is that someone in the team can monitor that file for failures and act on them, rather than have to scan through all the results to find the failures to deal with them. e.g. newman -c apitests.json -b '02 new basket' -e environment.json -o output.json -f