Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve E2E test CLI (FuelLabs#3079)
- Added new args: `exclude`, `skip-until`, `abi-only`, `contract-only` and `first-only`: ``` ❯ cargo run --bin=test -- --help Usage: test [OPTIONS] [REGEX] Arguments: [REGEX] Only run tests matching this regex Options: -e, --exclude <REGEX> Exclude tests matching this regex -s, --skip-until <REGEX> Skip all tests until a test matches this regex --abi-only Only run tests with ABI JSON output validation [aliases: abi] --contract-only Only run tests that deploy contracts [aliases: contract] --first-only Only run the first test [aliases: first] --verbose Print out warnings and errors [env: SWAY_TEST_VERBOSE=] --locked Intended for use in `CI` to ensure test lock files are up to date -h, --help Print help information ``` - Made `main()` async and refactored the rest accordingly so we don't have to create a new Tokio runtime for each `run` and `deploy`. - Moved some assertions to `assert_matches`, which will print the value that wasn't matched instead of just printing that there was no match, which helps with debugging. - Used `anyhow::Error`s instead of `String`s in more `Result::Err`s. Co-authored-by: Emily Herbert <[email protected]>
- Loading branch information