Log succeeded test
parent
6e4705c864
commit
241e9cb516
|
@ -33,12 +33,13 @@ const metaltest = (title) => {
|
||||||
try {
|
try {
|
||||||
for (const fn of before) await fn()
|
for (const fn of before) await fn()
|
||||||
await test.fn()
|
await test.fn()
|
||||||
|
|
||||||
success++
|
success++
|
||||||
|
testSuccess.push(test)
|
||||||
notify(reporters, 'success', test)
|
notify(reporters, 'success', test)
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
fail++
|
fail++
|
||||||
|
|
||||||
testFail.push(Object.assign({}, test, { error }))
|
testFail.push(Object.assign({}, test, { error }))
|
||||||
notify(reporters, 'fail', test, error)
|
notify(reporters, 'fail', test, error)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue