-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
p3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
Finished tests are not reported as passed when using retry + repeats. Removing either one fixes the issue. This happens only on beta release, not on 4.0.x/latest.
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
reporters: [
'default',
{
onTestRunEnd(testModules) {
for (const testModule of testModules) {
for (const test of testModule.children.allTests()) {
console.log(`[${test.result().state}] ${test.name}`)
}
}
},
},
],
},
})import { it } from 'vitest'
it('example', { retry: 2, repeats: 1 }, ({ }) => {}) ✓ test/retry.test.ts (1 test) 1ms
example 0ms (repeat x1)
Test Files 1 passed (1)
Tests (1)
Start at 14:20:12
Duration 6ms
[pending] exampleReproduction
System Info
StackblitzUsed Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
p3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)