pactum-json-reporter
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

pactum-json-reporter

JSON reporter for pactum tests

Installation

npm install --save-dev pactum
npm install --save-dev pactum-json-reporter

Usage

const pjr = require('pactum-json-reporter');
const { reporter } = require('pactum');

// global before block
before(() => {
  reporter.add(pjr);
});

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

Options

const pjr = require('pactum-json-reporter');

// name of the report file - defaults to "report.json"
pjr.file = 'report-name.json';

// folder path for the report file - defaults to "./reports"
pjr.path = './reports-path';

Dependents (0)

Package Sidebar

Install

npm i pactum-json-reporter

Weekly Downloads

737

Version

1.0.2

License

MIT

Unpacked Size

3.89 kB

Total Files

5

Last publish

Collaborators

  • asaianudeep