mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-20 22:44:20 +01:00
* Wasm: end-to-end-test support * Update testing dev docs * Expose Arc in prelude * Switch to waterfalls fork * Set node version
1.4 KiB
1.4 KiB
Development guide - Core crate
Prerequisites
To compile the Core crate you will first need to install:
- Protobuf
- Emscripten for compiling to Wasm
- Firefox for testing Wasm
brew install protobuf emscripten
On first usage you will need to run:
make init
Testing
To run the regular test suite:
make test
This comprises the following make tasks:
make cargo-test wasm-test
End-to-end tests
To run end-to-end tests, regtest has to be initialized. See regtest/README.md for prerequisites. Starting and stopping the regtest environment can be done using:
make regtest-start
make regtest-stop
To run the end-to-end tests (see Makefile for all targets):
make regtest-test # all tests on all targets
make cargo-regtest-test # run natively
make wasm-regtest-test # run on all Wasm runtimes (browser + node)
make wasm-regtest-test-browser # run on the browser (headless)
make wasm-regtest-test-browser NO_HEADLESS=1 # run on the browser (not headless)
# To run just a specific test or a subset of all tests the variable:
make wasm-regtest-test-browser REGTEST_TESTS=partial_test_name
make wasm-regtest-test-node # run on node.js