newman-reporter-html icon indicating copy to clipboard operation
newman-reporter-html copied to clipboard

Newman - command-line option to suppress test success details from output

Open jhardin-aptos opened this issue 6 years ago • 4 comments

We're developing data-driven test collections that perform a lot of validations using requests generated from sets of data retrieved from the database. The Newman output from a test run is becoming ... rather unwieldy.

It would be really nice if there was a way to tell Newman to not report the details of successful tests, just failed ones.

That would collapse this verbose clutter down to one row in the output:

image

Note: the very specific test names are due to the Newman HTML output collapsing test results for multiple executions of the same request with different parameters. See issue postmanlabs/newman-reporter-html#189.

Newman 4.3.1, HTML output WIN10 CLI

jhardin-aptos avatar Feb 19 '19 00:02 jhardin-aptos

@jhardin-aptos Would using a different reporter, that doesn't aggregate the executions help in the short term?

https://www.npmjs.com/package/newman-reporter-htmlextra

DannyDainton avatar Feb 19 '19 09:02 DannyDainton

Hm. Potentially.

I also didn't think to take a look at the HTML template options to see if there's a way to create a template that doesn't include the test successes.

Thanks for the suggestion, I will take a look at both possibilities.

jhardin-aptos avatar Feb 19 '19 15:02 jhardin-aptos

@jhardin-aptos Just to let you know I've included options in the htmlextra reporter that will show you only the failed requests and also filtering around the test section. Not sure if this will help with your problem.

DannyDainton avatar Mar 11 '19 12:03 DannyDainton

@codenirvana I'm working on this

jimc404 avatar Feb 26 '20 12:02 jimc404