playwright/docs/src/test-reporter-api
Dmitry Gozman 3331a40647
feat(test runner): tags/annotations (#29248)
API changes:
- `test(title, details, body)` where details contain `tag` and
`annotation`.
- similar `details` property added to `test.skip`, `test.fail`,
`test.fixme`, `test.only`, `test.describe` and other `test.describe.*`
variations.
- `TestProject.tagFilter`/`TestConfig.tagFilter` that supports logical
tag expressions with `(`, `)`, `and`, `or` and `not`.
- `--tag` CLI option to filter by tags.
- New annotations are available in `TestInfo.annotations` and
`TestCase.annotations`.
- New tags are available in `TestCase.tags`.
    
Reporter changes:
- `json` reporter includes new tags in addition to old `@smoke`-style
tags. **Breaking**: tags are now listed with the leading `@` symbol.
- `html` reporter filters by old and new tags with the same `@smoke`
token.

Fixes #29229, fixes #23180.
2024-02-07 16:31:25 -08:00
..
class-location.md docs: annotate since (#15386) 2022-07-05 17:24:50 -07:00
class-reporter.md feat(onEnd): allow overriding the exit code (#27010) 2023-09-12 13:37:30 -07:00
class-suite.md docs: remove overloads from test.* APIs (#29376) 2024-02-05 19:03:04 -08:00
class-testcase.md feat(test runner): tags/annotations (#29248) 2024-02-07 16:31:25 -08:00
class-testerror.md chore: add snippet to the error message (#21991) 2023-03-29 14:07:14 -07:00
class-testresult.md feat(reporter): Add parallelIndex field to TestResult (#19570) 2022-12-19 14:37:04 -08:00
class-teststep.md docs: annotate since (#15386) 2022-07-05 17:24:50 -07:00