事件:'test:start'
¥Event: 'test:start'
-
data<Object>-
column<number> | <undefined> 定义测试的列号,如果测试是通过 REPL 运行的,则为undefined。¥
column<number> | <undefined> The column number where the test is defined, orundefinedif the test was run through the REPL. -
file<string> | <undefined> 测试文件的路径,如果测试是通过 REPL 运行的,则为undefined。¥
file<string> | <undefined> The path of the test file,undefinedif test was run through the REPL. -
line<number> | <undefined> 定义测试的行号,如果测试是通过 REPL 运行的,则为undefined。¥
line<number> | <undefined> The line number where the test is defined, orundefinedif the test was run through the REPL. -
name<string> 测试名称。¥
name<string> The test name. -
nesting<number> 测试的嵌套级别。¥
nesting<number> The nesting level of the test.
-
当测试开始报告其自身及其子测试状态时触发。该事件保证按照测试定义的顺序触发。
¥Emitted when a test starts reporting its own and its subtests status. This event is guaranteed to be emitted in the same order as the tests are defined.