mocha
mocha copied to clipboard
🚀 Feature: parallel test prioritization
Feature Request Checklist
- [X] I have read and agree to Mocha's Code of Conduct and Contributing Guidelines
- [X] I have searched for related issues and issues with the
faq
label, but none matched my issue. - [X] I want to provide a PR to resolve this
Overview
I use mocha for automation testing on Roku devices. I've just started working on using parallel to improve the speed of tests. The issue I'm running into is that since you can not specify the order that files are executed in, it is choosing to do the file with the most tests last which then means all the other tests running parallel and then it gets to the final file that takes way longer and the other Roku devices are now just waiting for the final file of tests to run.
Suggested Solution
If there was some way to give prioritization or ordering of tests then test times could be improved in some cases dramatically
Alternatives
I could split the tests into either their own file or in smaller sets of files but then this hurts the organization of tests with describes I could run the file with the most tests as its own separate command but then any reporting would have to be combined for the final result
Additional Info
I checked the I want to provide a PR to resolve this
and would happy to help but would likely need some pointers of where to get going.