JSPM

nightwatch-allure-reporter

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q78642F
  • License ISC

Nightwatch allure reporter

Package Exports

  • nightwatch-allure-reporter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nightwatch-allure-reporter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#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