Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 713 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 713 Bytes

agent-js-nightwatch

Agent for integration Nightwatch with ReportPortal.
ReportPortal
ReportPortal on GitHub

How to use

  1. Install the agent in your project:
  1. Create reporter.js file with code like:
const rpReporter = require('agent-js-nightwatch');
const config = require('./rp');

module.exports = {
  write : (results, options, done) => rpReporter(results, config, done)
};

where rp.json - file with reportportal configuration

  1. Add a reporter to executed command:
nightwatch --config examples/nightwatch.json --reporter examples/reporter.js

Example

To run example:

npm t