@flakiness/playwright 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Tests](https://img.shields.io/endpoint?url=https%3A%2F%2Fflakiness.io%2Fapi%2Fbadge%3Finput%3D%257B%2522badgeToken%2522%253A%2522badge-5VBxhivD3vj6ItXSEL9heM%2522%257D)](https://flakiness.io/flakiness/playwright)
2
+
1
3
  # Flakiness.io Playwright Reporter
2
4
 
3
5
  A custom Playwright test reporter that generates Flakiness Reports from your Playwright test runs. The reporter automatically converts Playwright test results into the standardized [Flakiness JSON format](https://github.com/flakiness/flakiness-report), capturing test outcomes, attachments, system utilization, and environment information.
@@ -20,6 +22,7 @@ A custom Playwright test reporter that generates Flakiness Reports from your Pla
20
22
  - [`outputFolder?: string`](#outputfolder-string)
21
23
  - [`open?: 'always' | 'never' | 'on-failure'`](#open-always--never--on-failure)
22
24
  - [`collectBrowserVersions?: boolean`](#collectbrowserversions-boolean)
25
+ - [`disableUpload?: boolean`](#disableupload-boolean)
23
26
  - [Environment Variables](#environment-variables)
24
27
  - [Example Configuration](#example-configuration)
25
28
 
@@ -202,6 +205,16 @@ reporter: [
202
205
  ]
203
206
  ```
204
207
 
208
+ ### `disableUpload?: boolean`
209
+
210
+ When set to `true`, the reporter will skip uploading the report to Flakiness.io. The report is still generated locally in the output folder. This is useful for local development or testing the reporter itself. Can also be enabled via the `FLAKINESS_DISABLE_UPLOAD` environment variable.
211
+
212
+ ```typescript
213
+ reporter: [
214
+ ['@flakiness/playwright', { disableUpload: true }]
215
+ ]
216
+ ```
217
+
205
218
  ## Environment Variables
206
219
 
207
220
  The reporter respects the following environment variables:
@@ -209,6 +222,7 @@ The reporter respects the following environment variables:
209
222
  - **`FLAKINESS_ACCESS_TOKEN`**: Access token for Flakiness.io uploads (equivalent to `token` option)
210
223
  - **`FLAKINESS_ENDPOINT`**: Custom Flakiness.io endpoint URL (equivalent to `endpoint` option)
211
224
  - **`FLAKINESS_OUTPUT_DIR`**: Output directory for reports (equivalent to `outputFolder` option)
225
+ - **`FLAKINESS_DISABLE_UPLOAD`**: When set, disables report upload (equivalent to `disableUpload` option)
212
226
 
213
227
 
214
228
 
@@ -228,6 +242,7 @@ export default defineConfig({
228
242
  outputFolder: './flakiness-report',
229
243
  open: 'on-failure',
230
244
  collectBrowserVersions: false,
245
+ disableUpload: false,
231
246
  }]
232
247
  ],
233
248
  // ... rest of your config