Function lit::run::tests[][src]

pub fn tests<F>(
    event_handler: impl EventHandler,
    config_fn: F
) -> Result<(), ()> where
    F: Fn(&mut Config), 
Expand description

Runs all tests according to a given config.

Return Ok if all tests pass, and Err otherwise.

Parameters

  • config_fn is a function which sets up the test config.
  • event_handler is an object which presents the user interface to the user.