@rbnx/webdriverio
Version:
webdriverio plugin for nx
100 lines (99 loc) • 3.18 kB
JSON
{
"$schema": "http://json-schema.org/schema",
"$id": "NxWdioProject",
"title": "Add a WebdriverIO e2e project",
"type": "object",
"properties": {
"project": {
"type": "string",
"description": "The name of the frontend project to test",
"$default": {
"$source": "argv",
"index": 0
}
},
"tags": {
"type": "string",
"description": "Add tags to the project (used for linting).",
"alias": "t"
},
"specs": {
"type": "array",
"description": "Define which test specs should run. The pattern is relative to the directory of the configuration file being run.",
"default": ["src/e2e/**/*.spec.ts"]
},
"exclude": {
"type": "array",
"description": "Exclude spec file(s) from a run."
},
"maxInstances": {
"type": "number",
"description": "maxInstances handles how many capabilities from the same test should run tests."
},
"maxInstancesPerCapability": {
"type": "number",
"description": "maxInstancesPerCapability sets a limit to run tests with a specific capability"
},
"browsers": {
"type": "array",
"description": "A list of browsers (capabilities) you like to run your tests on.",
"enum": ["chrome", "firefox", "edge"]
},
"headless": {
"type": "boolean",
"description": "Run capability in headless mode."
},
"logLevel": {
"type": "string",
"description": "Level of logging verbosity.",
"enum": ["trace", "debug", "info", "warn", "error", "silent"]
},
"outputDir": {
"type": "string",
"description": "The output directory for the logs, relative to the root configuration of your project.",
"default": "./tmp"
},
"bail": {
"type": "number",
"description": "If you only want to run your tests until a specific amount of tests have failed use bail (default is 0 - don't bail, run all tests)."
},
"baseUrl": {
"type": "string",
"description": "The address (with the port) which your application is running on."
},
"waitforTimeout": {
"type": "number",
"description": "Default timeout for all waitForXXX commands."
},
"framework": {
"type": "string",
"description": "Framework you want to run your specs with.",
"enum": ["mocha", "jasmine"]
},
"reporters": {
"description": "Adds the specified wdio reporter",
"type": "array",
"enum": ["allure", "concise", "dot", "junit", "spec", "none"]
},
"services": {
"description": "Adds the specified wdio service",
"type": "array",
"enum": ["devtools", "selenium-standalone", "none"]
},
"protocol": {
"description": "The automation protocol to use with WebdriverIO",
"type": "string",
"enum": ["webdriver", "devtools"]
},
"specFileRetries": {
"type": "number",
"description": "The number of times to retry the entire specfile when it fails."
},
"skipFormat": {
"type": "boolean",
"description": "Skip formatting files.",
"default": false
}
},
"required": ["project"]
}