事件:'test:fail'
【Event: 'test:fail'】
data<Object>duration<number> 测试持续时间。error<Error> 故障外壳测试失败。name<string> 测试名称。testNumber<number> 测试的序号。todo<string> | <undefined> 如果调用了context.todo,则存在skip<string> | <undefined> 仅在调用context.skip时出现
测试失败时触发。
【Emitted when a test fails.】