pub trait RunTest: Send {
type Artifacts;
// Required methods
fn leaf_name(&self) -> &str;
fn resolve(&self, resolver: &ArtifactResolver<'_>) -> Self::Artifacts;
fn run(
&self,
params: PetriTestParams<'_>,
artifacts: Self::Artifacts,
) -> Result<()>;
}
Expand description
A test that can be run.
Register it to be run with test!
or multitest!
.
Required Associated Types§
Required Methods§
Sourcefn leaf_name(&self) -> &str
fn leaf_name(&self) -> &str
The leaf name of the test.
To produce the full test name, this will be prefixed with the module name where the test is defined.
Sourcefn resolve(&self, resolver: &ArtifactResolver<'_>) -> Self::Artifacts
fn resolve(&self, resolver: &ArtifactResolver<'_>) -> Self::Artifacts
Returns the artifacts required by the test.