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

chore: find a better more automatic way to distribute our tests #4178

Closed
erezrokah opened this issue Feb 4, 2022 · 3 comments
Closed

chore: find a better more automatic way to distribute our tests #4178

erezrokah opened this issue Feb 4, 2022 · 3 comments

Comments

@erezrokah
Copy link
Contributor

Follow up to #4164.

In #4164 we split our tests across multiple machines using an ava feature that allows it.
The feature works by sorting specs by file names, dividing those into chunks and sending each chunk to a different machine.
As a result of ava's distribution strategy and since some of our specs are slower than others, I manually distributed the tests using a naming scheme (prefixing with numbers).

See a suggestion in #4164 (comment).
Another possible option is to have a lint rule to enforce a maximum number of tests in a spec, to keep each spec execution time low

@erezrokah
Copy link
Contributor Author

We could possibly contribute to https://github.com/avajs/eslint-plugin-ava

@erezrokah
Copy link
Contributor Author

Opened avajs/ava#2965 for reference

@sarahetter
Copy link
Contributor

Moving away from ava

@sarahetter sarahetter closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants