[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix(runner): mark repeated tests as finished on last run (#9707)

authored by

Ari Perkkiö and committed by
GitHub
(Feb 21, 2026, 9:07 PM +0200) cc735970 0bd2bb44

+9 -10
+1 -6
packages/runner/src/run.ts
··· 658 658 }) 659 659 660 660 if (test.result!.state !== 'fail') { 661 - if (!test.repeats) { 662 - test.result!.state = 'pass' 663 - } 664 - else if (test.repeats && retry === retryCount) { 665 - test.result!.state = 'pass' 666 - } 661 + test.result!.state = 'pass' 667 662 } 668 663 } 669 664 catch (e) {
+4 -4
test/cli/test/reported-tasks.test.ts
··· 76 76 expect(testModule.location).toBeUndefined() 77 77 expect(testModule.moduleId).toBe(resolve(root, './1_first.test.ts')) 78 78 expect(testModule.project).toBe(project) 79 - expect(testModule.children.size).toBe(17) 79 + expect(testModule.children.size).toBe(18) 80 80 81 81 const tests = [...testModule.children.tests()] 82 - expect(tests).toHaveLength(12) 82 + expect(tests).toHaveLength(13) 83 83 const deepTests = [...testModule.children.allTests()] 84 - expect(deepTests).toHaveLength(22) 84 + expect(deepTests).toHaveLength(23) 85 85 86 86 expect.soft([...testModule.children.allTests('skipped')]).toHaveLength(8) 87 - expect.soft([...testModule.children.allTests('passed')]).toHaveLength(9) 87 + expect.soft([...testModule.children.allTests('passed')]).toHaveLength(10) 88 88 expect.soft([...testModule.children.allTests('failed')]).toHaveLength(5) 89 89 expect.soft([...testModule.children.allTests('pending')]).toHaveLength(0) 90 90
+4
test/cli/fixtures/reported-tasks/1_first.test.ts
··· 86 86 ctx.task.meta.key = 'value' 87 87 }) 88 88 89 + it('should not show up as pending test when finished (#9689)', { retry: 2, repeats: 2 }, ({ task }) => { 90 + expect(task.result?.state).toBe('run') 91 + }) 92 + 89 93 declare module 'vitest' { 90 94 interface TaskMeta { 91 95 key?: string