I continued this conversation in a private message but I wanted to add part/general gist of the messages here too for other people…
"I was messing for a few minutes and created this template, based on an example collection that I run locally when testing. The Status
column would be a green box and a tick
if the status code is 200
, or red box and a cross
for anything else.
You can get the sample test.hbs
file from here:
Copy the file locally and use the --reporter-htmlextra-template
flag in the cli to reference the file location.
Example Newman command:
newman run collection.json -e environment.json -r htmlextra --reporter-htmlextra-export test.html --reporter-htmlextra-template test.hbs
This isn’t a perfect solution but it’s hopefully going to show you something simple that can be done."