-
Notifications
You must be signed in to change notification settings - Fork 269
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
How to configure for mocha parallel ? #662
Comments
Hi @Shelvak. There's isn't any built-in support for parallelism via mocha. There are recipes for parallelizing jobs in CI here: (These suites are huge - in the 30-40 min range without parallelization) The technique used there is:
|
Another note - it's possible to configure the istanbul coverage report folder name in the |
Awesome cgewecke, thank you so much for the quick response. I think that I could hook the coverage part in each setup fork and try the merge report after everything. If I succeed I'll post here how I did it=) |
Ok great! |
Just in case anyone arrives here looking for "the answer". I solved this with docker (because parallel hardhat network fails most of the time):
Run parallel test inside docker: I'm 100% sure that the scripts can be improved but it's working =P Cheers |
Closing in favor of #691 |
Hi there, I'm trying to setup my env with parallel testing (because all my tests take about 4 minutes) and I was able to improve the time to 40seconds with last mocha version, but I can't get solidity-coverage run in parallel.
What I'm using:
Commands:
Parallel:
npx mocha
Sequential:
npx hardhat test
(ornpx hardhat coverage
to get the coverage)My
.mocharc.json
:Already tried with
mocha:
option in the.solcover.js
but it runs sequentially withnpx hardhat coverage
.Mocha requiring hardhat/register starts X processes and then run everything:
It's more a question than an issue but it would be awesome if we can get coverage working with mocha parallel =)
Cheers.
The text was updated successfully, but these errors were encountered: