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

perf: added evm_snapshot in order to avoid deploying on beforeEach #621

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AlanVerbner
Copy link

@AlanVerbner AlanVerbner commented Jun 28, 2021

Description

The contracts tests take several minutes to run. This PR tries to tackle a low hanging fruit that helps improving such time.

Proposed solution

In order to speed up the tests I've replaced several contracts deployment executions that were ran before each test by buidlervm evm_snapshot feature (it works on ganache as well).

At least on GH actions is taking ~25m instead of the ~35-40m seen on the main repo, leading to a 30% reduction

@AlanVerbner AlanVerbner force-pushed the chore/improve-contracts-test-speed branch from 6cd2be4 to 8ed1025 Compare June 30, 2021 12:19
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

Successfully merging this pull request may close these issues.

1 participant