All files / lib pluginHelp.js

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83            1x 1x                                                                                                                                                      
"use strict";
/**
 * `Web` plugin help.
 *
 * @function
 */
module.exports = (args, d) => {
    return args
        .options({
            /* selenium */
            "web": {
                describe: d("Flag to launch tests in browser."),
                type: "boolean",
                group: "Selenium:",
            },
            "web-url <URL>": {
                describe: d("Web URL which will be used for web tests."),
                type: "string",
                group: "Selenium:",
            },
            "web-resolution <widthxheight>": {
                describe: d("Browser viewport size ('pc' platform only)."),
                type: "string",
                group: "Selenium:",
            },
            "selenium-address <host:port>": {
                describe: d("Connect to launched selenium server with this address."),
                type: "string",
                group: "Selenium:",
            },
            "platform [type]": {
                describe: d("Specify platform type where tests will be executed.",
                    "Default is 'pc'."),
                type: "string",
                choices: [ "pc", "android", "ios" ],
                group: "Selenium:",
            },
            "browser [name]": {
                describe: d("Name of browser where web tests will be",
                    "executed. Default value is platform specific."),
                type: "string",
                group: "Selenium:",
            },
            /* appium */
            "device <name>": {
                describe: d("Mobile device name."),
                type: "string",
                group: "Appium:",
            },
            "os-version <value>": {
                describe: d("Mobile operating system version."),
                type: "string",
                group: "Appium:",
            },
            "ios-engine <name>": {
                describe: d("iOS automation engine name."),
                type: "string",
                group: "Appium:",
            },
            "udid <value>": {
                describe: d("Mobile device UDID."),
                type: "string",
                group: "Appium:",
            },
            /* chrome */
            "chrome-incognito": {
                describe: d("Launch chrome in incognito mode."),
                type: "boolean",
                group: "Chrome:",
            },
            "chrome-headless": {
                describe: d("Launch chrome in headless mode."),
                type: "boolean",
                group: "Chrome:",
            },
            "chrome-options": {
                describe: d("Provide space-separated chrome options with key=value style."),
                type: "string",
                group: "Chrome:",
            },
        });
};