-
Notifications
You must be signed in to change notification settings - Fork 5k
fix: don't parse file names for tags #38949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
File names containing @ symbols (e.g., @sample.test.ts) were incorrectly being treated as tags. Now only extract inline tags from describe block titles and test titles, not from file/project/root suite titles. Fixes microsoft#38946
Test results for "tests 1"12 failed 7 flaky34659 passed, 695 skipped Merge workflow run. |
Test results for "MCP"9 failed 3105 passed, 305 skipped Merge workflow run. |
|
|
||
| get tags(): string[] { | ||
| const titleTags = this._grepBaseTitlePath().join(' ').match(/@[\S]+/g) || []; | ||
| // Only extract inline tags from describe blocks and test title, not from file/project/root titles. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just pop first two items from this._grepBaseTitlePath()? These would be project + file.
File names containing @ symbols (e.g., @sample.test.ts) were incorrectly being treated as tags. Now only extract inline tags from describe block titles and test titles, not from file/project/root suite titles.
Fixes #38946