The tests go throw the flow of deploying a contract, funding it, generating a new payout, and claiming earnings.
Tests run on a test burner wallet funded with a generous amount of test FIL. The wallet info is inserted as an environment variable.
Tests have to run in specific order to complete the flow of deploying an claiming earnings.
New ci.yml created a github action for running the test suite.
The test suite is ran using:
cd cli
cargo build
cargo test cli -- --nocapture --test-threads 1
Organized the commands.rs folder: Moved the bulk of the functionality required in utils.rs to make the commands file less verbose and easier to ingest. Also allows us to decouple certain critical functionality from being embedded inside the Cli struct so we can run unit tests on those functions.
Changes:
New test suite that runs on hyperspace testnet:
ci.yml
created a github action for running the test suite.Organized the
commands.rs
folder: Moved the bulk of the functionality required inutils.rs
to make the commands file less verbose and easier to ingest. Also allows us to decouple certain critical functionality from being embedded inside theCli
struct so we can run unit tests on those functions.