Struct parables_testing::test_runner::TestRunner [−][src]
pub struct TestRunner<'a> { /* fields omitted */ }A scaffolding that runs tests very efficiently.
Methods
impl<'a> TestRunner<'a>[src]
impl<'a> TestRunner<'a>pub fn new() -> Self[src]
pub fn new() -> SelfBuild a new test runner.
pub fn module<'m>(
&'m mut self,
name: impl Into<Cow<'a, str>>
) -> ModuleRunner<'m, 'a>[src]
pub fn module<'m>(
&'m mut self,
name: impl Into<Cow<'a, str>>
) -> ModuleRunner<'m, 'a>Create a module runner.
pub fn run(self, reporter: &Reporter<'a>) -> Result<(), Error>[src]
pub fn run(self, reporter: &Reporter<'a>) -> Result<(), Error>Run by reading filters from argv.
pub fn run_with_filters<F>(
self,
filters: F,
reporter: &Reporter<'a>
) -> Result<(), Error> where
F: IntoIterator<Item = String>, [src]
pub fn run_with_filters<F>(
self,
filters: F,
reporter: &Reporter<'a>
) -> Result<(), Error> where
F: IntoIterator<Item = String>, Run all registered tests, while applying the given filter on their name.
All strings specified in the filter must be apart of the name of a test to include it.
Note: this installs a panic hook, so mixing this with another component that fiddles with the hook will cause unexpected results.
Trait Implementations
impl<'a> Debug for TestRunner<'a>[src]
impl<'a> Debug for TestRunner<'a>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> Suite<'a> for TestRunner<'a>[src]
impl<'a> Suite<'a> for TestRunner<'a>Auto Trait Implementations
impl<'a> Send for TestRunner<'a>
impl<'a> Send for TestRunner<'a>impl<'a> !Sync for TestRunner<'a>
impl<'a> !Sync for TestRunner<'a>