playwright/docs/src/test-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-fixtures.md docs: drop duplicate JS code snippets from test-api (#21466) 2023-03-16 19:01:15 +01:00
class-test.md feat(test runner): tags/annotations (#29248) 2024-02-07 16:31:25 -08:00
class-testconfig.md feat(test runner): tags/annotations (#29248) 2024-02-07 16:31:25 -08:00
class-testinfo.md docs: remove overloads from test.* APIs (#29376) 2024-02-05 19:03:04 -08:00
class-testinfoerror.md chore: report error location for fatal errors (#19610) 2022-12-21 09:36:59 -08:00
class-testoptions.md docs: note that custom args are on your own risk (#28656) 2023-12-14 14:37:31 -08:00
class-testproject.md feat(test runner): tags/annotations (#29248) 2024-02-07 16:31:25 -08:00
class-workerinfo.md docs: fix details about WorkerInfo vs TestInfo availability (#21699) 2023-03-16 12:36:34 -07:00