Will Mocha make --parallel the default test execution mode?
0 reputation · 27 Apr 2024, 16:54 UTC
Mocha’s --parallel flag runs test files in separate worker processes, but the feature remains experimental and the team has not decided whether to enable it by default in future releases. Test files can leak globals, module caches, or environment variables, which creates uncertainty about isolation when parallel mode is used.
Given the experimental label, possible reporter incompatibilities, and the ongoing discussion about opt‑in versus default behavior, what decisions are pending?
Will the Mocha team retain the explicit opt‑in for --parallel in the next major release? If parallel mode becomes the default, what mechanisms will be provided to reset globals between test files? How will the team address reporter incompatibilities when parallel mode is enabled?