UNPKG

html-reporter

Version:

Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.

20 lines 1.01 kB
'use strict'; const { cliCommands } = require('./index'); const { GUI: commandName } = cliCommands; module.exports = (cliTool, toolAdapter) => { // must be executed here because it adds `gui` field in tool instance, // which is available to other plugins and is an API for interacting with the current plugin toolAdapter.initGuiApi(); cliTool .command(`${commandName} [paths...]`) .allowUnknownOption() .description('update the changed screenshots or gather them if they does not exist') .option('-p, --port <port>', 'Port to launch server on', 8000) .option('--hostname <hostname>', 'Hostname to launch server on', 'localhost') .option('-a, --auto-run', 'auto run immediately') .option('-O, --no-open', 'not to open a browser window after starting the server') .action((paths, options) => { require('../../gui').default({ paths, toolAdapter, cli: { options, tool: cliTool } }); }); }; //# sourceMappingURL=gui.js.map