Skip to content

spenceclark/newman-reporter-json-summary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Summary Newman Reporter

This generates a very cut down version of the standard JSON reporter output. It is needed where large test packs which generate 1000's of tests results can blow the limits of JSON.Stringify

This outputs:

  • Collection.Info.Name
  • Collection.Info.Id
  • Run.Stats.Requests.*
  • Run.Stats.Assertions.*
  • Run.Timings.*
  • Run.Failures[n].Parent.Name
  • Run.Failures[n].Parent.Id
  • Run.Failures[n].Source.Name
  • Run.Failures[n].Source.Id
  • Run.Failures[n].Error.Message
  • Run.Failures[n].Error.Test

Usage:

newman run collection -r json-summary --reporter-summary-json-export output

Note: If reporter-json-summary-export parameter is not supplied, the output is written to a "newman" sub-folder and the file will contain the timestamp in its name


Schema of the output JSON: https://raw.githubusercontent.com/spenceclark/newman-reporter-json-summary/master/schema.json


Based on the https://www.npmjs.com/package/newman-reporter-json-light package, but slimmed down further.

About

A Newman JSON Reporter that strips the results down to a minimum

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published