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

E2E tests - Parallel Run and Improve test Isolation #133

Open
1 task
jpnovais opened this issue Oct 2, 2024 · 0 comments
Open
1 task

E2E tests - Parallel Run and Improve test Isolation #133

jpnovais opened this issue Oct 2, 2024 · 0 comments
Assignees
Labels
Contracts Smart Contract related Coordinator

Comments

@jpnovais
Copy link
Collaborator

jpnovais commented Oct 2, 2024

Description

End2End tests shall refactored to:

  • allow them to run in parallel and
  • have better isolation

Refactor Suggestions

One pinpoint at the moment is that we need to configure loads of environment variables in multiple files and know them by heart. This does not scale well and is error-prone.

Alternatively, we can he a global setup helper(s) for the test setup, that is responsible:

  • provide the overall configs: l1-endpoint, l2-endpoint, smart contract address etc
  • create l1/l2 accounts on the fly and fund them from whale accounts in the genesis

Motivation

  • Simulate Real-World Scenarios: e.g Coordinator & Message anchoring will benefit from being restarted when other things are happening. This is like in production
  • Speed up CI times
  • Shift-Left - Faster feedback loop - by reducing e2e times developers are more likely to run them locally.

Acceptance criteria

  • All the tests suites run in parallel, including the coordinator-restart
@jpnovais jpnovais added Coordinator Contracts Smart Contract related labels Oct 2, 2024
@VGau VGau self-assigned this Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contracts Smart Contract related Coordinator
Projects
None yet
Development

No branches or pull requests

2 participants