Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/spenceclark/newman-reporter-json-summary

A Newman JSON Reporter that strips the results down to a minimum
https://github.com/spenceclark/newman-reporter-json-summary

json newman postman

Last synced: 2 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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.