Agent for integration Nightwatch with ReportPortal.
ReportPortal
ReportPortal on GitHub
- Install the agent in your project:
- 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
- Add a reporter to executed command:
nightwatch --config examples/nightwatch.json --reporter examples/reporter.js
To run example:
npm t