All Projects → ITV → pmpact

ITV / pmpact

Licence: other
A command line tool to convert Pact files to Postman collections.

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to pmpact

Postman To K6
Converts Postman collections to k6 script code
Stars: ✭ 180 (+1100%)
Mutual labels:  postman, postman-collection
openman
Postman to OpenAPI Spec converter with mocking and documentation
Stars: ✭ 17 (+13.33%)
Mutual labels:  postman, postman-collection
Postman Code Generators
Common repository for all code generators shipped with Postman
Stars: ✭ 526 (+3406.67%)
Mutual labels:  postman, postman-collection
postman-webex
Postman collections for Webex REST APIs
Stars: ✭ 97 (+546.67%)
Mutual labels:  postman, postman-collection
Covid 19 Apis
Postman COVID-19 API Resource Center—API collections to help in the COVID-19 fight.
Stars: ✭ 111 (+640%)
Mutual labels:  postman, postman-collection
axon
Autogenerate Integration Tests
Stars: ✭ 49 (+226.67%)
Mutual labels:  postman, postman-collection
Newman
Newman is a command-line collection runner for Postman
Stars: ✭ 5,607 (+37280%)
Mutual labels:  postman, postman-collection
Gin Boilerplate
The fastest way to deploy a restful api's with Gin Framework with a structured project that defaults to PostgreSQL database and JWT authentication middleware stored in Redis
Stars: ✭ 559 (+3626.67%)
Mutual labels:  postman, postman-collection
Swaggman
OpenAPI Spec SDK and Converter for OpenAPI 3.0 and 2.0 Specs to Postman 2.0 Collections. Example RingCentral spec included.
Stars: ✭ 94 (+526.67%)
Mutual labels:  postman, postman-collection
Restdocs To Postman
Converts Spring REST Docs cURL snippets to Postman and Insomnia collections
Stars: ✭ 39 (+160%)
Mutual labels:  postman, postman-collection
postman-to-k6
Converts Postman collections to k6 script code
Stars: ✭ 269 (+1693.33%)
Mutual labels:  postman, postman-collection
Apiary2postman
Tool for generating a Postman collection from Blueprint API markup or the Apiary API
Stars: ✭ 194 (+1193.33%)
Mutual labels:  postman, postman-collection
trello-postman-collection
A Postman collection for Trello REST API
Stars: ✭ 20 (+33.33%)
Mutual labels:  postman, postman-collection
Azuredevops Postman Collections
The collections allow you to test common Azure DevOps Rest APIs from within Postman.
Stars: ✭ 182 (+1113.33%)
Mutual labels:  postman, postman-collection
Pmtoapib
Tool to convert Postman collection exports to Api Blueprint documentation
Stars: ✭ 34 (+126.67%)
Mutual labels:  postman, postman-collection
Messenger Platform Postman Collection
A delicious Postman collection for all your Messenger Platform needs.
Stars: ✭ 150 (+900%)
Mutual labels:  postman, postman-collection
graphql-to-postman
Plugin for converting GraphQL to the Postman Collection (v2) format
Stars: ✭ 27 (+80%)
Mutual labels:  postman, postman-collection
Api Flow
Universal data structure and converter for API formats (Swagger, RAML, Paw, Postman…)
Stars: ✭ 185 (+1133.33%)
Mutual labels:  postman
MQBench Quantize
QAT(quantize aware training) for classification with MQBench
Stars: ✭ 29 (+93.33%)
Mutual labels:  pact
Vsphere Automation Sdk Rest
REST (Postman and JavaScript) samples and API reference documentation for vSphere using the VMware REST API
Stars: ✭ 182 (+1113.33%)
Mutual labels:  postman

pmpact

A command line tool to convert Pact files to Postman collections.

Contents

Requirements

Requires NodeJS version v7.10.1 or higher.

Installation

npm install -g pmpact

Installation from the repo

Clone the repo and from the root execute:

npm install
npm link

Note: Don't forget to run npm unlink if needed!

Command line usage

From a url

pmpact http://pact-broker/provider/a-provider/consumer/a-consumer/latest

From a file

pmpact pact-file.json

Save to a file

pmpact http://pact-broker/provider/a-provider/consumer/a-consumer/latest -o postman-collection.json

From a url that requires headers

pmpact http://pact-broker/provider/a-provider/consumer/a-consumer/latest -H '{"Authorization":"Basic ZFhmbHR5Rk1n..."}'

Postman usage

Import the collection in Postman

Once you have a generated Postman collection, select "import" in Postman. The generated collection format is 2.1.

A collection should appear, starting with the name "Pact".

Create a Postman environment

A url variable is used for all the requests. The next step is to create an Postman environment with a url variable, for example: url: http://my-service.com.

  1. Image
  2. Image
  3. Image
  4. Image

You're good to go - so make the requests!

Run tests

Run all tests

npm test

Run unit tests only

npm run test-unit

Run integration tests only

npm run test-integration

### Watch tests

npm install -g nodemon
nodemon tests/unit -x "npm run test-unit"
nodemon tests/integration -x "npm run test-integration"

License

See License file

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].