Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run slowest tests first or provide a way to provide the order of tests #1532

Closed
4 tasks done
flunderpero opened this issue Jun 23, 2022 · 1 comment · Fixed by #1541
Closed
4 tasks done

Run slowest tests first or provide a way to provide the order of tests #1532

flunderpero opened this issue Jun 23, 2022 · 1 comment · Fixed by #1541
Labels
enhancement New feature or request

Comments

@flunderpero
Copy link

Clear and concise description of the problem

Jest runs the slowest tests first. That decreases overall runtime of our test-suite from ~90s to ~70s. In vitest the same suite always takes ~110s mainly due to the increased isolation (which is the greatest feature of vitest imo) but also because it so happens that the slow test files are started near the end of the run.

Suggested solution

Either implement Jest's approach and run the slowest test suites first or allow the user to specify the order in which tests are started. I would prefer Jest's approach.

Alternative

No response

Additional context

No response

Validations

@sheremet-va
Copy link
Member

I also noticed it, thank for pointing out. We may need to store previous tests results in a cache somewhere.

@sheremet-va sheremet-va added the enhancement New feature or request label Jun 23, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jun 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants