Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: clarify default reporter (#38256)

Yury Semikhatskyc73129a59494
diff --git a/docs/src/test-api/class-testconfig.md b/docs/src/test-api/class-testconfig.md
index 18b7416306..018a4ecb1b 100644
--- a/docs/src/test-api/class-testconfig.md
+++ b/docs/src/test-api/class-testconfig.md
@@ -456,7 +456,7 @@ The list of reporters to use. Each reporter can be:
* A module name like `'my-awesome-reporter'`.
* A relative path to the reporter like `'./reporters/my-awesome-reporter.js'`.
-You can pass options to the reporter in a tuple like `['json', { outputFile: './report.json' }]`.
+You can pass options to the reporter in a tuple like `['json', { outputFile: './report.json' }]`. If the property is not specified, Playwright uses the `'dot'` reporter when the CI environment variable is set, and the `'list'` reporter otherwise.
Learn more in the [reporters guide](../test-reporters.md).
diff --git a/packages/playwright/types/test.d.ts b/packages/playwright/types/test.d.ts
index 86134b2740..30006e2aaf 100644
--- a/packages/playwright/types/test.d.ts
+++ b/packages/playwright/types/test.d.ts
@@ -873,7 +873,9 @@ interface TestConfig<TestArgs = {}, WorkerArgs = {}> {
* - A module name like `'my-awesome-reporter'`.
* - A relative path to the reporter like `'./reporters/my-awesome-reporter.js'`.
*
- * You can pass options to the reporter in a tuple like `['json', { outputFile: './report.json' }]`.
+ * You can pass options to the reporter in a tuple like `['json', { outputFile: './report.json' }]`. If the property
+ * is not specified, Playwright uses the `'dot'` reporter when the CI environment variable is set, and the `'list'`
+ * reporter otherwise.
*
* Learn more in the [reporters guide](https://playwright.dev/docs/test-reporters).
*