feat: retain-on-failure-and-retries trace option#39387
feat: retain-on-failure-and-retries trace option#39387Yuvalmorami wants to merge 2 commits intomicrosoft:mainfrom
Conversation
|
@microsoft-github-policy-service agree |
| expect(fs.existsSync(retryTracePath)).toBeTruthy(); | ||
| }); | ||
|
|
||
| test('trace:retain-on-failure-and-retries should not create trace if test passes', async ({ runInlineTest }, testInfo) => { |
There was a problem hiding this comment.
remove this test, this case is already covered by test(trace:${mode} should not create trace zip artifact if page test passed above
Test results for "tests 1"2 failed 2 flaky38605 passed, 843 skipped Merge workflow run. |
Test results for "MCP"7 failed 4970 passed, 171 skipped Merge workflow run. |
Closes #34588
Summary
Adds a new retain-on-failure-and-retries trace mode that records traces for every test attempt (initial run + retries) and retains all of them when any attempt fails. This makes it possible to compare failing and passing runs side-by-side when debugging flaky tests.
Behavior
Changes