@@ -124,6 +124,7 @@ class MyReporter {
124124
125125 . on ( EVENT_TEST_PASS , async ( test ) => {
126126 if ( this . testObservability == true ) {
127+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_PASS for uuid: ${ test . testAnalyticsId } ` ) ;
127128 if ( ! this . runStatusMarkedHash [ test . testAnalyticsId ] ) {
128129 if ( test . testAnalyticsId ) this . runStatusMarkedHash [ test . testAnalyticsId ] = true ;
129130 await this . sendTestRunEvent ( test ) ;
@@ -133,6 +134,7 @@ class MyReporter {
133134
134135 . on ( EVENT_TEST_FAIL , async ( test , err ) => {
135136 if ( this . testObservability == true ) {
137+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_FAIL for uuid: ${ test . testAnalyticsId } ` ) ;
136138 if ( ( test . testAnalyticsId && ! this . runStatusMarkedHash [ test . testAnalyticsId ] ) || ( test . hookAnalyticsId && ! this . runStatusMarkedHash [ test . hookAnalyticsId ] ) ) {
137139 if ( test . testAnalyticsId ) {
138140 this . runStatusMarkedHash [ test . testAnalyticsId ] = true ;
@@ -148,6 +150,7 @@ class MyReporter {
148150 . on ( EVENT_TEST_PENDING , async ( test ) => {
149151 if ( this . testObservability == true ) {
150152 if ( ! test . testAnalyticsId ) test . testAnalyticsId = uuidv4 ( ) ;
153+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_PENDING for uuid: ${ test . testAnalyticsId } ` ) ;
151154 if ( ! this . runStatusMarkedHash [ test . testAnalyticsId ] ) {
152155 this . runStatusMarkedHash [ test . testAnalyticsId ] = true ;
153156 await this . sendTestRunEvent ( test , undefined , false , "TestRunSkipped" ) ;
@@ -214,6 +217,7 @@ class MyReporter {
214217 this . current_test = test ;
215218 test . retryOf = null ;
216219 test . testAnalyticsId = uuidv4 ( ) ;
220+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_BEGIN for uuid: ${ test . testAnalyticsId } ` ) ;
217221 test . started_at = ( new Date ( ) ) . toISOString ( ) ;
218222 test . test_started_at = test . started_at ;
219223 if ( test . _currentRetry > 0 && lastTest && lastTest . title == test . title ) {
0 commit comments