- Simlink or copy compiled
zebrad
, zcashdand
zcash-clibinaries to
$ zaino/test_binaries/bins/*`
- To run Zaino-testutils tests:
- Run
$ cargo nextest run -p zaino_testutils
- To run Zaino-State FetchService tests:
- Run
$ cargo nextest run fetch_service
- To run Zaino-State StateService tests:
- Generate the zcashd chain cache
cargo nextest run generate_zcashd_chain_cache --run-ignored ignored-only
- Generate the zebrad chain cache
cargo nextest run generate_zebrad_large_chain_cache --run-ignored ignored-only
- Run
$ cargo nextest run state_service --no-capture
*NOTE: As we currently have several bugs using Zebra's regtest mode for our tests, we are having to rely on loading cached chain-data instead of creating chain data dynamically. Due to this, and the fact that Zebra requires a lock on its chain cache, all unit tests in zaino-state (and any others relying on loading cached chain data) must be run sequentially. This can be done by running tests with the --no-capture
flag. Eg. cargo nextest run -p zaino-state --no-capture
.
- To run Wallet-to-Validator tests:
- Simlink or copy compiled
zcashd
,zcash-cli
andzebrad
binaries to$ zaino/test_binaries/bins/*
- Run
$ cargo nextest run --test wallet_to_validator
- To run client rpc tests:
- Simlink or copy compiled
zebrad
, zcashd,
zcash-cliand
lightwalletdbinaries to
$ zaino/test_binaries/bins/*` - Build release binary
cargo build --release
WARNING: these tests do not use the binary built by cargo nextest - Generate the chain cache
cargo nextest run generate_zcashd_chain_cache --run-ignored ignored-only
- Run
cargo nextest run --test client_rpcs
- To run client rpc test
get_subtree_roots_sapling
:
- sync Zebrad testnet to at least 2 sapling shards
- copy the Zebrad testnet
state
cache tozaino/integration-tests/chain_cache/get_subtree_roots_sapling
directory. See theget_subtree_roots_sapling
test fixture doc comments in zcash_local_net for more details.
- To run client rpc test
get_subtree_roots_orchard
:
- sync Zebrad mainnet to at least 2 orchard shards
- copy the Zebrad mainnet
state
cache tozaino/integration-tests/chain_cache/get_subtree_roots_orchard
directory. See theget_subtree_roots_orchard
test fixture doc comments in zcash_local_net for more details.
NOTE: These tests are currently not working and should be ignored until fixed in zcash-local-net
.