How do I manually configure Shards for execution #5480
-
In a project I am working on, we use vitest to drive Puppeteer tests. These tests take a lot of resources to run and we know which ones can be run in parallel and which can only run alone in our CI. Is there a way to manually configure which tests run in parallels and which in sequence? Basically manually defining the shards. We tried the following without much success :
We're also using the configs:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
One potential confusion is that For example, if you have multiple test files, which should run one by one, and then in each file, you want to use
Btw, you didn't mention in which way it's not working. Is it too serial? or is it too concurrent?
|
Beta Was this translation helpful? Give feedback.
I don't think that's currently possible with a single
vitest
command.Probably you would need to split to two test commands, something like:
Or these two patterns are distinct enough, then you could prepare two configs: