moonwall
v1.0.1
Published
Testing framework for Substrate-based networks
Maintainers
Readme
Description

Moonwall is a comprehensive blockchain test framework for Substrate-based networks
Documentation
- Troubleshooting Guide - Solutions for common issues and development workflows
Installation
NPM Installation
pnpm -g i moonwallOr whichever way you prefer to install via your favourite package manager
Local Installation
Package manager
pnpmis required for this repo. You can install it withnpm install -g pnpmor otherwise following their instructions.
pnpm ito install all dependencies.pnpm buildto build the application locally.pnpm startto check that the application runs- (In your project dir)
npm i <path_to_moonwall_repo>to locally add moonwall to your other repo
From here you can import everything you need from moonwall in your code:
import { describeSuite, beforeAll, expect, ALITH_ADDRESS, alith, GLMR } from "moonwall";Functions
- Execute Script: Run scripts placed in your config defined script directory.
- Network Launcher & Toolbox: Launch network, access tools: tail logs, interactive tests etc.
- Test Suite Execution: Run automated tests, start network if needed.
- Artifact Downloader: Fetch artifacts (x86) from GitHub repos.
:information_source: Use
--helpfor more information about arguments for each command
Usage Examples (non-exhaustive)
moonwall: If you have globally installed moonwall, here is the most minimal entrypointpnpm moonwall: This can be used if locally installed, and will launch the main menu..pnpm moonwall run <ENV_NAME>: Run a network specified in your config file.pnpm moonwall test <ENV_NAME>: Start network and run tests against it.pnpm moonwall download <ARTIFACT NAME> <VERSION> <PATH>: Download an artifact directly from github.
The combinations are endless, for more information you can see the pnpm docs here.
