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

feat(Snapshot): Expose Snapshot tree for sandbox tests + use in e2e tests #3642

Open
Tracked by #5759
rahul-kothari opened this issue Dec 11, 2023 · 0 comments
Open
Tracked by #5759
Assignees

Comments

@rahul-kothari
Copy link
Contributor

rahul-kothari commented Dec 11, 2023

From Lasse:
One of the really nice testing features to have for the sandbox would be reverting the state back to a certain snapshot.

With the snapshotted trees (and also use snapshots of the anvil state), we should be able to send a command that "rollback" to the specified snapshot (both L1 and L2 state).
This could be used to heavily reduce testing times where there is a lot of repetitive setup. As you would just do a snapshot in beforeEach and a cheatcode.rollback() in the afterEach().

For tests that are going back and deploying the full setup at every single iteration this should be a massive speedup.

Definition of Done:

  • e2e tests use these to speed them up
  • In process of doing so, we might end up creating methods to easily use the snapshot tree. This should be documented - Seek devrel's help for this
@github-project-automation github-project-automation bot moved this to Todo in A3 Dec 11, 2023
@LHerskind LHerskind moved this from Todo to In Progress in A3 Dec 18, 2023
@sklppy88 sklppy88 moved this from In Progress to Todo in A3 Feb 1, 2024
@sklppy88 sklppy88 moved this from Todo to On Hold in A3 Feb 29, 2024
@LHerskind LHerskind changed the title Expose Snapshot tree for sandbox tests + use in e2e tests feat(Snapshot): Expose Snapshot tree for sandbox tests + use in e2e tests Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants