Soroban Test

Test framework wrapping Soroban CLI.

Provides a way to run tests aganist a local sandbox; running against RPC endpoint coming soon.

Overview

Example

```rs use soroban_test::{TestEnv, Wasm};

const WASM: &Wasm = &Wasm::Release("sorobanhelloworld_contract"); const FRIEND: &str = "friend";

[test]

fn invoke() { TestEnv::withdefault(|workspace| { asserteq!( format!("["Hello","{FRIEND}"]"), workspace .invoke(&[ "--id", "1", "--wasm", &WASM.path().tostringlossy(), "--", "hello", "--to", FRIEND, ]) .unwrap() ); }); } ```