1.0.0 • Published 3 years ago

nightwatch-allure-reporter v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

#This project is forked from https://github.com/kushmangal/Nightwatch-Allure-Reporter

#Nightwatch Allure Reporter This is a custom reporter for nightwatch, which uses allure reporting to generate reports.

##Install Steps npm install nightwatch-allure-reporter --save

##Usage Steps

Add following code to globals file in nightwatch

const allureReporter = require('nightwatch-allure');
module.exports = {
  reporter: (results,done)=>{
    const reporter = new allureReporter.NightwatchAllureReporter({});
    reporter.write(results,done);
  }
};

That's it, this will create a allure-results folder in your root directory To serve these results use allure reporter cli, for that first you would need to download allure cli then use following command

allure generate ./allure-results --clean && allure open