Home

Awesome

Newman Serverless Plugin

A serverless plugin for newman.

Dependencies

Features

Usage

Add the plugin to your serverless.yml like the following:

serverless.yml

provider:
...

plugins:
  - serverless-plugin-newman

custom:
    collection:
      file: test/postman_collection.json
    environment:
      file: test/deploy.postman_environment.json
      values:
        - key: endpoint
          enabled: true
          value: ServiceEndpoint
          type: OUTPUTS

functions:
...
resources:
...

# Configure Environment

serverless newman env --stage dev --region eu-west-1

# Run Newman

serverless newman run --stage dev --region eu-west-1

License

MIT