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

Implement ganache wrapper #1

Closed
JoranHonig opened this issue Aug 18, 2019 · 2 comments
Closed

Implement ganache wrapper #1

JoranHonig opened this issue Aug 18, 2019 · 2 comments

Comments

@JoranHonig
Copy link
Owner

Description

Currently vertigo expects that there are live test networks available.
Regularly one would estup several instances of ganache to allow for parallel mutation testing.
However, due to the nature of ganache this results in millions of files and hundreds of GB's being created over the course of one mutation run.

A more effective and user friendly approach is to dynamically create a new ganache instance for each test run, using a ramdisk rather than local storage.
This also removes the need to manually setup different ganache processes, which is another win in usability

@cgewecke
Copy link

cgewecke commented Nov 7, 2019

Just leaving a note in case this is not something you've already looked into. (And not sure this would really resolve anything)....

When the ganache server is launched within a JS script via the .server() method, it can be passed provider options. One of these is db which lets you specify an in-memory db store like memdown.

This seems like it would get around the files issue. I've also heard it's faster, although my attempt to benchmark did not really show much improvement so idk.

@JoranHonig
Copy link
Owner Author

JoranHonig commented Oct 29, 2020

It's been a while 😅, trufflesuite/ganache#798 exposes this in memory db's for ganache through the CLI.

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

2 participants