Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.13 KB

README.md

File metadata and controls

40 lines (24 loc) · 1.13 KB

wasm-workspace

⚠️ This repo is experimental and shouldn't be relied upon!

An example Cargo workspace for building wasms for use with Namada.

Tests

Unit and integration

cargo test

End-to-end

End-to-end tests are binaries under crates/e2e_tests/src/bin. It should be possible to run them against any Namada chain.

Running locally using Docker Compose

⚠️ This method of running locally may not work on Apple Silicon.

To run them against a preconfigured network:

make docker  # should be run any time test runners or wasms change
docker compose up

The ledger container runs indefinitely.

The testrunner container will run all tests in series. It will exit if a test fails (exits with status code 2) or errors (exits with status code 1), or once all tests have successfully passed (exited with status code 0).

There is an adhoc container that can be SSH'ed into if you want to run test binaries or interact with the ledger manually.

docker compose exec -it adhoc /bin/bash

The test network can be reset with docker compose down.