事件:'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.