Skip to main content

forest/dev/subcommands/
tests_cmd.rs

1// Copyright 2019-2026 ChainSafe Systems
2// SPDX-License-Identifier: Apache-2.0, MIT
3
4// Integration-test harness (not `#[cfg(test)]`, but test tooling rather than node runtime).
5#![allow(clippy::unwrap_used)]
6
7pub(crate) mod helpers;
8mod mpool;
9mod wallet;
10
11/// Integration tests
12#[derive(Debug, clap::Subcommand)]
13pub enum TestsCommand {
14    Wallet(wallet::WalletTestCommand),
15    Mpool(mpool::MpoolTestCommand),
16}
17
18impl TestsCommand {
19    pub async fn run(self) -> anyhow::Result<()> {
20        match self {
21            Self::Wallet(cmd) => cmd.run().await,
22            Self::Mpool(cmd) => cmd.run().await,
23        }
24    }
25}