pub fn group(
name: impl AsRef<str>,
f: impl FnOnce() -> Result<()>,
) -> Result<()>Expand description
Run a test group, resetting the plugin before and after the group is run.
use extism_pdk::*;
#[plugin_fn]
pub fn test() -> FnResult<()> {
xtp_test::group("group name", || {
xtp_test::assert("test name", true);
})?;
Ok(())
}