docs.rs failed to build soroban-test-20.3.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
soroban-test-21.0.0-rc.1
Soroban Test
Test framework wrapping Soroban CLI.
Provides a way to run tests against a local sandbox; running against RPC endpoint coming soon.
Overview
TestEnv
is a test environment for running tests isolated from each other.TestEnv::with_default
invokes a closure, which is passed a reference to a randomTestEnv
.TestEnv::new_assert_cmd
creates anassert_cmd::Command
for a given subcommand and sets the current directory to be the same asTestEnv
.TestEnv::cmd
is a generic function which parses a command from a string. Note, however, that it usesshlex
to tokenize the string. This can cause issues for commands which contain strings with"
s. For example,{"hello": "world"}
becomes{hello:world}
. For that reason it's recommended to useTestEnv::cmd_arr
instead.TestEnv::cmd_arr
is a generic function which takes an array of&str
which is passed directly to clap. This is the preferred way since it ensures no string parsing footguns.TestEnv::invoke
a convenience function for using the invoke command.
Example
use ;
const WASM: &Wasm = & Release;
const FRIEND: &str = "friend";