|
| 1 | +{ |
| 2 | + "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft-plugin.schema.json", |
| 3 | + |
| 4 | + "taskPlugins": [ |
| 5 | + { |
| 6 | + "pluginName": "run-playwright-plugin", |
| 7 | + "entryPoint": "./lib/RunPlaywrightPlugin", |
| 8 | + "optionsSchema": "./lib/schemas/playwright.schema.json", |
| 9 | + "parameterScope": "playwright", |
| 10 | + "parameters": [ |
| 11 | + { |
| 12 | + "longName": "--debug-mode", |
| 13 | + "parameterKind": "flag", |
| 14 | + "description": "Run Playwright in debug mode with a single worker and headed browser." |
| 15 | + }, |
| 16 | + { |
| 17 | + "longName": "--headed", |
| 18 | + "parameterKind": "flag", |
| 19 | + "description": "Run tests in headed mode (show browser UI)." |
| 20 | + }, |
| 21 | + { |
| 22 | + "longName": "--ui", |
| 23 | + "parameterKind": "flag", |
| 24 | + "description": "Run tests in UI mode." |
| 25 | + }, |
| 26 | + { |
| 27 | + "longName": "--project", |
| 28 | + "parameterKind": "string", |
| 29 | + "argumentName": "PROJECT", |
| 30 | + "description": "Run tests only in the specified project (e.g., chromium, firefox, webkit)." |
| 31 | + }, |
| 32 | + { |
| 33 | + "longName": "--config", |
| 34 | + "parameterKind": "string", |
| 35 | + "argumentName": "PATH", |
| 36 | + "description": "Path to Playwright configuration file." |
| 37 | + }, |
| 38 | + { |
| 39 | + "longName": "--grep", |
| 40 | + "parameterKind": "string", |
| 41 | + "argumentName": "PATTERN", |
| 42 | + "description": "Run only tests matching the specified pattern." |
| 43 | + }, |
| 44 | + { |
| 45 | + "longName": "--workers", |
| 46 | + "parameterKind": "string", |
| 47 | + "argumentName": "NUMBER", |
| 48 | + "description": "Number of parallel workers to use for running tests." |
| 49 | + }, |
| 50 | + { |
| 51 | + "longName": "--list", |
| 52 | + "parameterKind": "flag", |
| 53 | + "description": "List all tests without running them." |
| 54 | + }, |
| 55 | + { |
| 56 | + "longName": "--trace", |
| 57 | + "parameterKind": "flag", |
| 58 | + "description": "Record execution trace for each test." |
| 59 | + }, |
| 60 | + { |
| 61 | + "longName": "--grep-invert", |
| 62 | + "parameterKind": "string", |
| 63 | + "argumentName": "PATTERN", |
| 64 | + "description": "Run only tests NOT matching the specified pattern." |
| 65 | + }, |
| 66 | + { |
| 67 | + "longName": "--repeat-each", |
| 68 | + "parameterKind": "integer", |
| 69 | + "argumentName": "COUNT", |
| 70 | + "description": "Run each test N times." |
| 71 | + }, |
| 72 | + { |
| 73 | + "longName": "--retries", |
| 74 | + "parameterKind": "integer", |
| 75 | + "argumentName": "COUNT", |
| 76 | + "description": "Maximum number of retry attempts per test." |
| 77 | + }, |
| 78 | + { |
| 79 | + "longName": "--timeout", |
| 80 | + "parameterKind": "integer", |
| 81 | + "argumentName": "MILLISECONDS", |
| 82 | + "description": "Timeout for each test in milliseconds." |
| 83 | + }, |
| 84 | + { |
| 85 | + "longName": "--ui-host", |
| 86 | + "parameterKind": "string", |
| 87 | + "argumentName": "HOST", |
| 88 | + "description": "Host to serve UI mode on (default: localhost)." |
| 89 | + }, |
| 90 | + { |
| 91 | + "longName": "--ui-port", |
| 92 | + "parameterKind": "string", |
| 93 | + "argumentName": "PORT", |
| 94 | + "description": "Port to serve UI mode on (default: auto)." |
| 95 | + }, |
| 96 | + { |
| 97 | + "longName": "--test-path", |
| 98 | + "parameterKind": "stringList", |
| 99 | + "argumentName": "PATH", |
| 100 | + "description": "Specify test file paths to run." |
| 101 | + }, |
| 102 | + { |
| 103 | + "longName": "--install-browser", |
| 104 | + "parameterKind": "choiceList", |
| 105 | + "description": "Install the specified browser(s), but do not run the tests. The browser will be forcibly installed with dependencies.", |
| 106 | + "alternatives": [ |
| 107 | + { |
| 108 | + "name": "chromium", |
| 109 | + "description": "The Chromium browser" |
| 110 | + }, |
| 111 | + { |
| 112 | + "name": "firefox", |
| 113 | + "description": "The Mozilla Firefox browser" |
| 114 | + }, |
| 115 | + { |
| 116 | + "name": "webkit", |
| 117 | + "description": "The WebKit browser" |
| 118 | + }, |
| 119 | + { |
| 120 | + "name": "chrome", |
| 121 | + "description": "The Google Chrome browser" |
| 122 | + }, |
| 123 | + { |
| 124 | + "name": "msedge", |
| 125 | + "description": "The Microsoft Edge browser" |
| 126 | + } |
| 127 | + ] |
| 128 | + }, |
| 129 | + { |
| 130 | + "parameterKind": "flag", |
| 131 | + "longName": "--install-browsers", |
| 132 | + "description": "Install all Playwright browsers (chromium, firefox, webkit, chrome, msedge), but do not run the tests." |
| 133 | + } |
| 134 | + ] |
| 135 | + } |
| 136 | + ] |
| 137 | +} |
0 commit comments