postmanlabs / newman

Newman is a command-line collection runner for Postman
https://www.postman.com
Apache License 2.0
6.88k stars 1.17k forks source link

Feature Request: cli-show-summary option #2888

Open jonquandt opened 2 years ago

jonquandt commented 2 years ago
  1. Newman Version: 5.3.0
  2. OS details: Microsoft Windows 10 [Version 10.0.18363.1916] 64-bit
  3. Are you using Newman as a library, or via the CLI? CLI
  4. Did you encounter this recently, or has this bug always been there: always
  5. Expected behaviour: run a collection and receive just the CLI summary back, particularly in conjunction with other reporters exporting files
  6. Command / script used to run Newman: newman run "Postman Echo.postman_collection.json" -r cli,html --reporter-cli-no-failures --reporter-cli-no-assertions --reporter-cli-no-success-assertions --reporter-cli-no-console --reporter-cli-no-banner
  7. Sample collection, and auxiliary files (minus the sensitive details): Postman-echo
  8. Screenshots (if applicable):

Story

As a newman CLI user, I want to run multiple reporters for my collection and get a simple summary output within the CLI so that I can spot obvious problems quickly.

Proposed Acceptance Criteria

desired output:

c:\gitrepos\postman-tests\cli-summary-only>newman run "Postman Echo.postman_collection.json" -r cli,htmlextra --reporter-cli-no-failures --reporter-cli-no-assertions --reporter-cli-no-success-assertions --reporter-cli-no-console --reporter-cli-no-banner
Postman Echo
Using htmlextra version 1.22.3

┌─────────────────────────┬──────────────────┬──────────────────┐
│                         │         executed │           failed │
├─────────────────────────┼──────────────────┼──────────────────┤
│              iterations │                1 │                0 │
├─────────────────────────┼──────────────────┼──────────────────┤
│                requests │               35 │                0 │
├─────────────────────────┼──────────────────┼──────────────────┤
│            test-scripts │               35 │                0 │
├─────────────────────────┼──────────────────┼──────────────────┤
│      prerequest-scripts │                0 │                0 │
├─────────────────────────┼──────────────────┼──────────────────┤
│              assertions │               86 │                3 │
├─────────────────────────┴──────────────────┴──────────────────┤
│ total run duration: 4.1s                                      │
├───────────────────────────────────────────────────────────────┤
│ total data received: 23.99kB (approx)                         │
├───────────────────────────────────────────────────────────────┤
│ average response time: 95ms [min: 25ms, max: 2s, s.d.: 332ms] │
byrdman commented 2 years ago

This would be quite handy

sergioccrr commented 2 years ago

+1

Neihko commented 9 months ago

Anyone know when this will be available please ?