feat(reporter): add omitTags option to omit auto-appended tags#41968
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| | `PLAYWRIGHT_FORCE_TTY` | | Whether to produce output suitable for a live terminal. Supports `true`, `1`, `false`, `0`, `[WIDTH]`, and `[WIDTH]x[HEIGHT]`. `[WIDTH]` and `[WIDTH]x[HEIGHT]` specifies the TTY dimensions. | `true` when terminal is in TTY mode, `false` otherwise. | ||
| | `FORCE_COLOR` | | Whether to produce colored output. | `true` when terminal is in TTY mode, `false` otherwise. | ||
| | `NO_COLOR` | | Whether to disable colored output ([no-color.org](https://no-color.org/)). Any non-empty value disables colors. | unset | ||
| | | `omitTags` | Whether to omit test tags that are automatically appended to test titles. | `false` |
There was a problem hiding this comment.
Please add PLAYWRIGHT_LIST_OMIT_TAGS env variable support as well. I'd also put this line next to the first two options.
Same goes for other reporters.
the terminal reporters automatically append a test's tags to its title, which clutters the output when a test declares many tags add off-by-default `omitTags` option and `PLAYWRIGHT_*_OMIT_TAGS` environment variables that suppresses the appended tags in the `list`, `line`, `dot`, `github`, and `junit` reporters note that tags written directly into a test title are left untouched
Test results for "MCP"1 failed 7794 passed, 1266 skipped Merge workflow run. |
Test results for "tests 1"6 flaky50641 passed, 1190 skipped Merge workflow run. |
🟢 CI is clear — the one failure is a pre-existing flakeHi, I'm the Playwright bot and I took a look at the failing CI. The single hard failure — DetailsThis PR adds an off-by-default Pre-existing flake / infra
Triaged by the Playwright bot - agent run |
the terminal reporters automatically append a test's tags to its title, which clutters the output when a test declares many tags
add an off-by-default
omitTagsoption that suppresses the appended tags in thelist,line,dot,github, andjunitreportersnote that tags written directly into a test title are left untouched
fixes #41945