🎛
TestGroup
A logical grouping of tests.
This is a reporting class designed to collect tests logically by group. The notable parameters in this group for inspection are as follows:
1
export declare class TestGroup implements ILogTarget {
2
3
/** All the tests for this group. */
4
tests: TestResult[];
5
6
/** Everything that was logged in this group that wasn't inside the test. */
7
logs: ReflectedValue[];
8
9
/** The name of the group. */
10
name: string;
11
12
/** An indicator if the group passed. */
13
pass: boolean;
14
15
/** However long the test group ran. */
16
time: number;
17
18
/** The start time. */
19
start: number;
20
21
/** The end time. */
22
end: number;
23
24
/** Nested groups in this test group. */
25
children: TestGroup[];
26
27
/** A set of loggable errors. */
28
errors: IWarning[];
29
30
/** A set of loggable warnings. */
31
warnings: IWarning[];
32
}
33
Copied!
Warnings have the following shape:
1
export interface IWarning {
2
/** This is the type of the warning. */
3
type: string;
4
/** This is the generated warning message. */
5
message: string;
6
/** This is the stack trace. */
7
stackTrace: string;
8
}
Copied!
Copy link