ef_tests::suite

Trait Suite

Source
pub trait Suite {
    type Case: Case;

    // Required method
    fn suite_name(&self) -> String;

    // Provided method
    fn run(&self) { ... }
}
Expand description

A collection of tests.

Required Associated Types§

Source

type Case: Case

The type of test cases in this suite.

Required Methods§

Source

fn suite_name(&self) -> String

The name of the test suite used to locate the individual test cases.

§Example
  • GeneralStateTests
  • BlockchainTests/InvalidBlocks
  • BlockchainTests/TransitionTests

Provided Methods§

Source

fn run(&self)

Load an run each contained test case.

§Note

This recursively finds every test description in the resulting path.

Implementors§