Skip to content

Conversation

@dgozman
Copy link
Contributor

@dgozman dgozman commented Jan 31, 2024

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.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@dgozman dgozman changed the title feat(test runner): tags feat(test runner): tags/annotations Feb 7, 2024
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

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.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2024

Test results for "tests 1"

8 flaky ⚠️ [chromium] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [firefox] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [playwright-test] › ui-mode-test-ct.spec.ts:188:5 › should watch component
⚠️ [playwright-test] › ui-mode-test-screencast.spec.ts:21:5 › should show screenshots
⚠️ [chromium] › library/tracing.spec.ts:243:5 › should not include trace resources from the previous chunks
⚠️ [chromium] › page/page-event-request.spec.ts:139:3 › should report navigation requests and responses handled by service worker with routing
⚠️ [webkit] › page/page-goto.spec.ts:266:3 › should fail when navigating to bad SSL
⚠️ [playwright-test] › ui-mode-test-ct.spec.ts:59:5 › should run component tests after editing test

26597 passed, 611 skipped
✔️✔️✔️

Merge workflow run.

@dgozman dgozman merged commit 3331a40 into microsoft:main Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] beforeEach/fixtures, but executed even for skipped tests [Feature] tags API

3 participants