Skip to content

Commit

Permalink
Added JSON description
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Apr 29, 2024
1 parent 507d375 commit a98874c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/src/test-reporters-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,12 @@ export default defineConfig({
});
```

JSON report supports following configuration options and environment variables:

| Environment Variable Name | Reporter Config Option| Description | Default
|---|---|---|---|
| `PLAYWRIGHT_JUNIT_OUTPUT_NAME` | `outputFile` | Report file path. | JSON report is printed to stdout.

### JUnit reporter

JUnit reporter produces a JUnit-style xml report.
Expand Down Expand Up @@ -297,7 +303,7 @@ JUnit report supports following configuration options and environment variables:

| Environment Variable Name | Reporter Config Option| Description | Default
|---|---|---|---|
| `PLAYWRIGHT_JUNIT_OUTPUT_NAME` | `outputFile` | Report file name. | JUnit report is printed to stdout.
| `PLAYWRIGHT_JUNIT_OUTPUT_NAME` | `outputFile` | Report file path. | JUnit report is printed to stdout.
| | `stripANSIControlSequences` | Wether to remove ANSI control sequences from the text before writing it in the report. | By default output text is added as is.
| | `includeProjectInTestName` | Whether to include Playwright project name in every test case as a name prefix. | By default not included.
| `PLAYWRIGHT_JUNIT_SUITE_ID` | | Value of the `id` attribute on the root `<testsuites/>` report entry. | Empty string.
Expand Down

0 comments on commit a98874c

Please sign in to comment.