0.1.4 • Published 2 years ago

pactum-flow-plugin v0.1.4

Weekly downloads
11
License
ISC
Repository
github
Last release
2 years ago

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
0.1.4

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.3

2 years ago

0.0.6

2 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago