UNPKG

nightwatch-html-reporter

Version:

Generates an HTML view of the Nightwatch.js test reports by either parsing the XML files generated by Nightwatch or by using the Nightwatch reporter options.

8 lines (6 loc) 221 B
var path = require('path'); module.exports = function(outputFilename, screenshotPath) { var absOut = path.resolve(outputFilename); var absDir = path.dirname(absOut); return path.relative(absDir, screenshotPath); }