feat(runner)!: support describe(..., { shuffle: boolean }) and inherit from parent suite by hi-ogawa · Pull Request #6670 · vitest-dev/vitest (original) (raw)

Description

This PR adds TestOptions.shuffle to allow "unshuffling" by describe("...", { shuffle: false }).

I noticed that describe.shuffle is not inherited to inner suites now, but probably changing this behavior would make sense to align with how concurrent works, so this change will be breaking.

One thing to note, when using config.sequence.shuffle: true, it's already shuffling all tests (as complained in #3922), so this use case is unchanged. What's breaking is when using describe.shuffle and using normal describe inside like in test/core/test/random.test.ts.

todo

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

Tests

Documentation

Changesets