Socket
Socket
Sign inDemoInstall

pactum-flow-plugin

Package Overview
Dependencies
5
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pactum-flow-plugin

plugin to publish flows, interactions and run contract tests locally


Version published
Weekly downloads
1.8K
increased by12.26%
Maintainers
1
Install size
82.0 kB
Created
Weekly downloads
 

Readme

Source

pactum-flow-plugin

plugin to publish flows, interactions & run contract tests locally

Usage


const pf = require('pactum-flow-plugin');
const { reporter } = require('pactum');

// global before block
before(() => {
  pf.config.url = '<pactum-flow-server-url>';
  pf.config.projectId = '<unique-project-id>';
  pf.config.projectName = '<unique-project-name>';
  pf.config.version = '<unique-project-version>';
  pf.config.username = '<username>';
  pf.config.password = '<password>';
  reporter.add(pf.reporter);
});

// global after block
after(async () => {
  await reporter.end();
});

Options

optiontypedescriptionothers
urlstringpactum flow server urlrequired (if publish is true)
projectIdstringunique project idrequired (if publish is true)
projectNamestringunique project namerequired (if publish is true)
versionstringunique project versionrequired (if publish is true)
tokenstringauth tokenrequired (if publish is true)
usernamestringscanner usernamerequired (if token is empty)
passwordstringscanner passwordrequired (if token is empty)
batchSizenumberpactum flow server urldefaults to 10
publishbooleanenable publishing contractsdefaults to true
dirbooleansave contracts in fsdefaults to false
dirstringsave contracts in custom pathdefaults to .pactum/contracts/
checkQualityGatebooleancheck quality gatedefaults to false
checkQualityGateLocalbooleancheck quality gate locally without publishingdefaults to false
checkQualityGateTimeoutnumbercheck quality gate timeoutdefaults to 10000ms
checkQualityGateEnvironmentsstringcheck quality gate against the given envsdefaults to all envs
checkQualityGateDefaultDelaynumberdefault delay to wait for processing analysisdefaults to 2000ms
jUnitReporterbooleanenable jUnit reporterdefaults to false
jUnitReporterPathstringjunit reporter pathdefaults to contract-tests

Keywords

FAQs

Last updated on 11 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc