Skip to content

DavyJ0nes/postal-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postal Service

Description

A CLI tool that wraps running numerous Postman collections against an API that is started using docker-compose

Install

To install simply run go install within the root of the repository. You will need to have Go installed, see here for instructions

Usage

Please refer the help of the command for how to use it:

$ postal-service --help

Example

Within examples directory there are a few examples of how the tool can be used. For example within the basic-http directory you can run the tool and see the following output:

$ postal-service run          
Running Postal Service
-- Initialising API

-- Running Postman Collection
-----------------------------
--- Running: basic-http.postman_collection.json
-----------------------------
-- Killing API
-----------------------------
basic-http

Iteration 1/2

→ Get Index
  GET http://web/ [200 OK, 850B, 120ms]

Iteration 2/2

→ Get Index
  GET http://web/ [200 OK, 850B, 5ms]

┌─────────────────────────┬──────────┬──────────┐
│                         │ executed │   failed │
├─────────────────────────┼──────────┼──────────┤
│              iterations │        2 │        0 │
├─────────────────────────┼──────────┼──────────┤
│                requests │        2 │        0 │
├─────────────────────────┼──────────┼──────────┤
│            test-scripts │        2 │        0 │
├─────────────────────────┼──────────┼──────────┤
│      prerequest-scripts │        0 │        0 │
├─────────────────────────┼──────────┼──────────┤
│              assertions │        4 │        0 │
├─────────────────────────┴──────────┴──────────┤
│ total run duration: 255ms                     │
├───────────────────────────────────────────────┤
│ total data received: 1.2KB (approx)           │
├───────────────────────────────────────────────┤
│ average response time: 62ms                   │
└───────────────────────────────────────────────┘