• Pricing
© 2025 Serverless, Inc. All rights reserved.
Terms of ServicePrivacy Policy
rawphp

Serverless Plugin Newman

by

A serverless plugin for newman.

00
  1. Serverless Plugin Newman

Newman Serverless Plugin

A serverless plugin for newman.

Dependencies

  • This plugin is dependent on the output of Stack Config Plugin for Serverless for its environment configuration

Features

  • newman env - This writes the postman environment file with the configured values
  • newman run - This executes the newman postman tests

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

Contents

  • Newman Serverless Plugin
  • Dependencies
  • Features
  • Usage
  • serverless.yml
  • # Configure Environment
  • # Run Newman
  • License

Related

GuidesPluginsExamplesSlack CommunitySupport