You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Metadata that will be put directly to the test report serialized as JSON.
237
+
Metadata contains key-value pairs to be included in the report. For example, HTML report will display it as key-value pairs, and JSON report will include metadata serialized as json.
238
+
239
+
See also [`property: TestConfig.populateGitInfo`] that populates metadata.
238
240
239
241
**Usage**
240
242
241
243
```js title="playwright.config.ts"
242
244
import { defineConfig } from'@playwright/test';
243
245
244
246
exportdefaultdefineConfig({
245
-
metadata:'acceptance tests',
247
+
metadata:{ title:'acceptance tests' },
246
248
});
247
249
```
248
250
@@ -325,7 +327,9 @@ This path will serve as the base directory for each test file snapshot directory
325
327
* since: v1.51
326
328
- type: ?<[boolean]>
327
329
328
-
Whether to populate [`property: TestConfig.metadata`] with Git info. The metadata will automatically appear in the HTML report and is available in Reporter API.
330
+
Whether to populate `'git.commit.info'` field of the [`property: TestConfig.metadata`] with Git commit info and CI/CD information.
331
+
332
+
This information will appear in the HTML and JSON reports and is available in the Reporter API.
329
333
330
334
**Usage**
331
335
@@ -647,7 +651,7 @@ export default defineConfig({
647
651
-`timeout` ?<[int]> How long to wait for the process to start up and be available in milliseconds. Defaults to 60000.
648
652
-`gracefulShutdown` ?<[Object]> How to shut down the process. If unspecified, the process group is forcefully `SIGKILL`ed. If set to `{ signal: 'SIGTERM', timeout: 500 }`, the process group is sent a `SIGTERM` signal, followed by `SIGKILL` if it doesn't exit within 500ms. You can also use `SIGINT` as the signal instead. A `0` timeout means no `SIGKILL` will be sent. Windows doesn't support `SIGTERM` and `SIGINT` signals, so this option is ignored on Windows. Note that shutting down a Docker container requires `SIGTERM`.
649
653
-`signal` <["SIGINT"|"SIGTERM"]>
650
-
-`timeout` <[int]>
654
+
-`timeout` <[int]>
651
655
-`url` ?<[string]> The url on your http server that is expected to return a 2xx, 3xx, 400, 401, 402, or 403 status code when the server is ready to accept connections. Redirects (3xx status codes) are being followed and the new location is checked. Either `port` or `url` should be specified.
652
656
653
657
Launch a development web server (or multiple) during the tests.
0 commit comments