Skip to content

feat(cli): add cli integration test to ci #174

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

Merged
merged 22 commits into from
Jul 24, 2025

Conversation

Mechanix97
Copy link
Contributor

@Mechanix97 Mechanix97 commented Jul 18, 2025

Motivation

A ci job for the rex cli was needed.

Description

This PR includes a new job in the Integration Test CI which tests the cli commands of rex.

This test follows the same logic as the SDK's integration test, but using command line arguments.

To achieve running the CLI from a rust testfile, the crate std::process::Command was used.

Test structure

First, a deposit is performed from a rich L1 wallet and the amounts are checked after it.

Then, a transfer from this wallet to another wallet is done and all the amounts are verified.

And lastly, 5 withdrawals are executed and the funds are back on the L1.

@Mechanix97 Mechanix97 marked this pull request as ready for review July 21, 2025 14:55
@Mechanix97 Mechanix97 requested a review from a team as a code owner July 21, 2025 14:55
@Mechanix97 Mechanix97 marked this pull request as draft July 21, 2025 15:21
@Mechanix97 Mechanix97 marked this pull request as ready for review July 21, 2025 18:24
@Mechanix97 Mechanix97 self-assigned this Jul 22, 2025
@Mechanix97 Mechanix97 added the cli label Jul 22, 2025
@Mechanix97 Mechanix97 merged commit 1c658ad into main Jul 24, 2025
11 checks passed
@Mechanix97 Mechanix97 deleted the mecha/add-cli-ci-integration-test branch July 24, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants