pub trait Fixture: Sized + 'static {
type Setup: Default;
// Required methods
fn start(setup: Self::Setup) -> impl Future<Output = Result<Self>>;
fn url(&self) -> String;
fn quit(self) -> impl Future<Output = Result<()>>;
// Provided methods
fn config() -> Config { ... }
fn init_tracing() { ... }
}Expand description
The application under test, started afresh for every test and taken down after it.
A suite names one fixture in harness!, and every test is handed the one
started for it beside the browser, so whatever a test needs to reach behind
the page (a database, a port, a channel into the server) is its own.
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn init_tracing()
fn init_tracing()
Install the run’s tracing subscriber. The default prints INFO and
above.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".