Struct kailua_test::Tester [] [src]

#[must_use]
pub struct Tester<T> { /* fields omitted */ }

The tester. It is parameterized over test-specific Testing implementations.

Methods

impl<T: Testing> Tester<T>
[src]

Creates a new tester with given Testing implementation, and parses command-line options (while calling Testing::augment_args and Testing::collect_args methods if any).

The name is used for command-line helps and otherwise irrelevant.

Adds a feature (as recognized by feature:* test options) and enables or disables that.

Scans a given directory for test files and tests any of them in the current setting.

Finishes the test by printing summaries and any failed test outputs. Additionally terminates the current process with exit code 1 on any error.