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

L2: Improve tests #1652

Open
fborello-lambda opened this issue Jan 7, 2025 · 0 comments
Open

L2: Improve tests #1652

fborello-lambda opened this issue Jan 7, 2025 · 0 comments
Labels

Comments

@fborello-lambda
Copy link
Contributor

At the moment we use the ci_test/test make target from the Makefile located at crates/l2.

We may want to test some functionalities of the following modules/structures/abstractions:

  • EthClient
  • sdk
  • calldata parser

We can take advantage of the setup the ci_test performs. For example, if we want to add a new test we can do the following, and then we can run the tests with:

cargo test l2 --release -- --nocapture --test-threads=1

--test-threads=1 is to avoid parallelization, if we use the same account we may have some troubles, we can use a different rich account for each test, in that way we shouldn't have problems.
cargo test l2 will match tests that has l2 in the function. [docs]

PR #1619 has the first test for an sdk's function (deploy())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Status: No status
Development

No branches or pull requests

1 participant