Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/building/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,30 @@ Then run:
python3 -m unittest discover -s scripts/linux/tests -p 'test_*.py' -v
```

## Zcash integration tests

The unit tests in `test/wallets/zcash_*_test.dart` use fakes and need no node.

`integration_test/zcash/zcash_regtest_test.dart` drives `ZcashWallet`, with
the app's own `zcash-ffi` library, against a private regtest chain. It starts
a `zebrad` and a `lightwalletd` on free local ports, in a temporary directory,
and stops them when it ends. It covers a new wallet, receiving, a send with a
memo from broadcast to confirmation, spending received funds, and a restore
from the recovery phrase and birthday. Run it through the wrapper, on a Linux
or macOS host with an app configured with `ZCASH` enabled:

```sh
bash scripts/zcash_e2e_test.sh # host desktop
bash scripts/zcash_e2e_test.sh linux # explicit device
```

The wrapper takes the two executables from `ZEBRAD_BIN` and
`LIGHTWALLETD_BIN`, or from `PATH`. The suite is tested with zebrad 7.0.0 and
lightwalletd 0.6.1. The Linux app links the JsonCPP and libsecret that
`build_app.sh` builds, so a checkout configured another way needs
`scripts/linux/build_secure_storage_deps.sh` run once. A Linux host without a
display needs `xvfb-run -a` in front of the command.

## Xelis integration tests

Run these on a configured desktop target (`windows`, `linux`, or `macos`) with
Expand Down
Loading