Running Tests in Folders Concurrently, but Folders in Parallel #6796
Unanswered
kevinswarner
asked this question in
Q&A
Replies: 1 comment
-
This sounds like only a matter of scripting and I'm not sure Vitest is relevant. I would imagine something like this would work (though not sure about concurrently's syntax or package manager).
You can also move |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a project where we have thousands of test files. We cannot run them in parallel by default because they operate against a shared database and the tests clobber each other and result in inconsistent results. We have tests organized into different folders.
For example...
Our goal is to run each test within a folder sequentially, but run tests for the folders in parallel. We are able to make sure the tests in each different folder operate against separate databases.
We have tried to use the "concurrently" package to simply execute "vitest run" for different folders in parallel, but it will not work as expected. The folders still run sequentially.
I attempted using a custom sequencer, but had no luck with that.
If anyone has faced this problem, I appreciate any guidance.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions