Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pactum-flow-plugin

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pactum-flow-plugin

plugin to publish flows, interactions and run contract tests locally

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
741
decreased by-34.66%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 11 Apr 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc