-
Notifications
You must be signed in to change notification settings - Fork 4.9k
feat: --pause #38338
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
feat: --pause #38338
Conversation
| onTestBegin?(test: TestCase, result: TestResult): void; | ||
| onStdOut?(chunk: string | Buffer, test?: TestCase, result?: TestResult): void; | ||
| onStdErr?(chunk: string | Buffer, test?: TestCase, result?: TestResult): void; | ||
| onTestPaused?(test: TestCase, result: TestResult): void; |
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.
I played around with different variants of invoking the reporter. A special function ended being the easiest to reason about. This should probably replace FailureTracker#onTestPaused.
| return; | ||
| } | ||
|
|
||
| if (data.apiName === 'page.pause' && data.frames.length === 0 && channel.params?.location) |
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.
this is hella hacky. i'm all ears for a better solution
| return true; | ||
| } | ||
|
|
||
| export function findTestEndPosition(text: string, location: Location): Location | undefined { |
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.
I'm not sure at what time we already parse the test code. Potentially we could do this at scanning time, and then the Extension could get the end position from the Reporter API?
|
|
||
| export type ConfigCLIOverrides = { | ||
| debug?: boolean; | ||
| pause?: boolean; |
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.
This could replace new TestRun(options=)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Test results for "MCP"3 failed 1 flaky2606 passed, 116 skipped Merge workflow run. |
Test results for "tests 1"1 failed 9 flaky40307 passed, 787 skipped Merge workflow run. |
|
superceded by #38345 |
No description provided.