mochajs / mocha

β˜•οΈ simple, flexible, fun javascript test framework for node.js & the browser

Home Page:https://mochajs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸš€ Feature: parallel test prioritization

triwav opened this issue Β· comments

Feature Request Checklist

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.