事件:'test:fail'
¥Event: 'test:fail'
-
data
<Object>-
duration
<number> 测试持续时间。¥
duration
<number> The test duration. -
error
<Error> 失败套管测试失败。¥
error
<Error> The failure casing test to fail. -
name
<string> 测试名称。¥
name
<string> The test name. -
testNumber
<number> 测试的序号。¥
testNumber
<number> The ordinal number of the test. -
todo
<string> | <undefined> 如果调用context.todo
,则存在¥
todo
<string> | <undefined> Present ifcontext.todo
is called -
skip
<string> | <undefined> 如果调用context.skip
,则存在¥
skip
<string> | <undefined> Present ifcontext.skip
is called
-
测试失败时触发。
¥Emitted when a test fails.