Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.67 KB

testing.md

File metadata and controls

29 lines (22 loc) · 1.67 KB

Testing

Dependencies

  1. Zebrad
  2. Lightwalletd
  3. Zcashd, Zcash-Cli

Tests

  1. Simlink or copy compiled zebrad, zcashdandzcash-clibinaries to$ zaino/test_binaries/bins/*`

Chain Cache: Several tests rely on a cached chain to run, for these tests to pass the chain must first be generated: 2) Generate the zcashd chain cache cargo nextest run generate_zcashd_chain_cache --run-ignored ignored-only 3) Generate the zebrad chain cache cargo nextest run generate_zebrad_large_chain_cache --run-ignored ignored-only

Client Rpc Tests: For the client rpc tests to pass a Zaino release binary must be built and added to PATH: 4) Build release binary cargo build --release and add to PATH. WARNING: these tests do not use the binary built by cargo nextest

  1. Run $ cargo nextest run

NOTE: The client rpc get_subtree_roots tests are currently ignored, to run them testnet and mainnet chains must first be generated.

  • To run client rpc test get_subtree_roots_sapling:
  1. sync Zebrad testnet to at least 2 sapling shards
  2. copy the Zebrad testnet state cache to zaino/integration-tests/chain_cache/get_subtree_roots_sapling directory. See the get_subtree_roots_sapling test fixture doc comments in infrastructure for more details.
  • To run client rpc test get_subtree_roots_orchard:
  1. sync Zebrad mainnet to at least 2 orchard shards
  2. copy the Zebrad mainnet state cache to zaino/integration-tests/chain_cache/get_subtree_roots_orchard directory. See the get_subtree_roots_orchard test fixture doc comments in infrastructure for more details.