Skip to content
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

Run Hardhat tests in --parallel mode #179

Open
ericglau opened this issue Feb 15, 2023 · 0 comments
Open

Run Hardhat tests in --parallel mode #179

ericglau opened this issue Feb 15, 2023 · 0 comments

Comments

@ericglau
Copy link

ericglau commented Feb 15, 2023

Hardhat Upgrades plugin supports Hardhat tests in --parallel mode as of this release. When used with this Forta contracts repository, this results in a 3-4x improvement in test run time.

This requires the following npm packages and versions:

Here is an example fork of the forta-contracts repository that demonstrates this:
https://github.com/ericglau/forta-contracts/tree/parallel

Note that this fork is based on an older commit, and also that hardhat-gas-reporter does not support the --parallel flag.

However, parallel tests reduces test time from around 3 minutes to less than a minute, so this is something that could save a lot of overhead if used frequently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant