From ca2b90924ccbbc6f8ca4af10bcc4fc4da5a7d7f3 Mon Sep 17 00:00:00 2001 From: Allie Mims Date: Tue, 4 Feb 2025 10:36:56 -0500 Subject: [PATCH] Add additional logging to custom reporter --- tests/e2e-pw/atomic-debug-reporter.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/e2e-pw/atomic-debug-reporter.ts b/tests/e2e-pw/atomic-debug-reporter.ts index 200c24e3743..39f0fa0caaa 100644 --- a/tests/e2e-pw/atomic-debug-reporter.ts +++ b/tests/e2e-pw/atomic-debug-reporter.ts @@ -24,6 +24,16 @@ class AtomicDebugReporter implements Reporter { onTestEnd( test: TestCase, result: TestResult ) { console.log( `Finished test ${ test.title }: ${ result.status }` ); + + if ( result.status === 'failed' || result.status === 'timedOut' ) { + console.log( 'First error thrown during test execution:' ); + console.log( result.error ); + + if ( result.errors ) { + console.log( 'All errors thrown during test execution:' ); + console.log( result.errors ); + } + } } onEnd( result: FullResult ) {