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

1.0.3 • Public • Published

pactum-influxdb-reporter

InfluxDB reporter for pactum tests

Installation

npm install --save-dev pactum
npm install --save-dev pactum-influxdb-reporter

Usage

const pir = require('pactum-influxdb-reporter');
const pactum = require('pactum');
const reporter = pactum.reporter;

// global before block
before(() => {
  pir.url = '<influxdb url>';
  pir.db = '<db name>';
  pir.measurement = '<measurement name>';

  /* custom tags like - build version */
  pir.tags = { Version: '1.0.12' }; // optional
  
  reporter.add(pir);
});

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

Package Sidebar

Install

npm i pactum-influxdb-reporter

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

4.05 kB

Total Files

5

Last publish

Collaborators

  • asaianudeep