1. @nightwatch/html-reporter-template
Nightwatch HTML reporter template
@nightwatch/html-reporter-template
Package: @nightwatch/html-reporter-template
Created by: nightwatchjs
Last modified: Wed, 24 Jan 2024 14:14:13 GMT
Version: 0.3.0
License: MIT
Downloads: 182,057
Repository: https://github.com/nightwatchjs/html-reporter

Install

npm install @nightwatch/html-reporter-template
yarn add @nightwatch/html-reporter-template

Nightwatch HTML Reporter template

npm
Discord

This package is used internally by the Nightwatch HTML reporter and it's not designed to be used directly.

This Repo contains template for HTML and VRT Reporter.

🏗 Installation

 npm install @nightwatch/html-reporter-template

🚀 Usage

 const { writeNightwatchHTMLReport } = require('@nightwatch/html-reporter-template');;

/**
 * This function will insert the result object within the HTML **reporter**
 * and add it to the destination folder.
 * The result object will be available in the "window.nightwatchReport" variable.
 *
 */
writeNightwatchHTMLReport(<destFolder>, <destFileName>, <result object>);

Note
You can find about more about function here

🐛 Issues

Issues with this Reporter Template can filed here

If you want to contribute (or have contributed in the past), feel free to add yourself to the list of contributors in the package.json before you open a PR!

👨‍💻 Development

Getting started

🛠️ Node.js and npm are required for the scripts. Make sure it's installed on your machine.

⬇️ Install the dependencies for the nightwatch reporter template

 npm install

🏃 Run the tool

 # To run HTML Reporter
npm run dev:html

# To run VRT Reporter
npm run dev:vrt

👷‍♂️ Build both reporters

 npm run build:html
npm run build:vrt

♻️ Clean build files

 npm run clean

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code