1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//! Test execution and scheduling for kitest.
//!
//! A runner coordinates running tests and producing [`TestOutcome`] values.
//! It may run tests on a single thread or use multiple worker threads.
//!
//! The harness passes the runner an iterator of test execution functions.
//! These functions already include panic handling (they return a [`TestStatus`]),
//! so the runner can focus on scheduling, timing, and output capture.
//!
//! Runners are also responsible for collecting per test output (stdout and stderr)
//! using the output capture mechanisms provided by the crate, and for measuring
//! test durations.
//!
//! Implement [`TestRunner`] to define how kitest schedules tests and turns statuses
//! into outcomes.
use ;
use crate::;
pub use *;
pub use *;
pub use *;
/// A strategy for running tests and producing [`TestOutcome`] values.
///
/// A runner organizes when and where tests execute.
/// It may use multiple threads, but it does not have to.
/// The produced iterator does not have to keep the same order as the incoming test iterator.