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';