Open boneskull opened 4 years ago
(Note new parallel
label)
@boneskull
hello, I read this issue and working on it and came up with two questions.
first, where to change. I found mocha has two spots to turn on parallel function, 1) parallelMode function (in lib/mocha.js) 2) parallelrun (in lib/run-helpers)
Because parallelMode function comes first, I think it would be better to check and switch in parallelMode function if the file is better with running in single mode. I want to know your opinion.
second, the testing size would it be enough only with a single file? maybe two files, for three.. I also want to know your opinion on this!
thank you for your time.
This would be really nice for performance - other test runners such as Jest take similar strategies. Since parallel runs aren't very deterministic right now, I don't think it'd likely be received as a big breaking change for users. But slapping the semver-major
label on just to be safe.
I have a couple ideas for improvements here now that we're past the MVP:
--force
might be helpful)node_modules/.cache/mocha
, which is an unofficial convention).run()
call inlib/nodejs/worker.js
, from beginning to end.