@@ -123,6 +123,7 @@ class MyReporter {
123123 } )
124124
125125 . on ( EVENT_TEST_PASS , async ( test ) => {
126+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_PASS` ) ;
126127 if ( this . testObservability == true ) {
127128 await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_PASS for uuid: ${ test . testAnalyticsId } ` ) ;
128129 if ( ! this . runStatusMarkedHash [ test . testAnalyticsId ] ) {
@@ -133,6 +134,7 @@ class MyReporter {
133134 } )
134135
135136 . on ( EVENT_TEST_FAIL , async ( test , err ) => {
137+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_FAIL` ) ;
136138 if ( this . testObservability == true ) {
137139 await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_FAIL for uuid: ${ test . testAnalyticsId } ` ) ;
138140 if ( ( test . testAnalyticsId && ! this . runStatusMarkedHash [ test . testAnalyticsId ] ) || ( test . hookAnalyticsId && ! this . runStatusMarkedHash [ test . hookAnalyticsId ] ) ) {
@@ -148,6 +150,7 @@ class MyReporter {
148150 } )
149151
150152 . on ( EVENT_TEST_PENDING , async ( test ) => {
153+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_PENDING` ) ;
151154 if ( this . testObservability == true ) {
152155 if ( ! test . testAnalyticsId ) test . testAnalyticsId = uuidv4 ( ) ;
153156 await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_PENDING for uuid: ${ test . testAnalyticsId } ` ) ;
@@ -159,13 +162,17 @@ class MyReporter {
159162 } )
160163
161164 . on ( EVENT_TEST_BEGIN , async ( test ) => {
165+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_BEGIN` ) ;
166+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_BEGIN for uuid: ${ test . testAnalyticsId } ` ) ;
162167 if ( this . runStatusMarkedHash [ test . testAnalyticsId ] ) return ;
163168 if ( this . testObservability == true ) {
164169 await this . testStarted ( test ) ;
165170 }
166171 } )
167172
168173 . on ( EVENT_TEST_END , async ( test ) => {
174+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_END` ) ;
175+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_BEGIN for uuid: ${ test . testAnalyticsId } ` ) ;
169176 if ( this . runStatusMarkedHash [ test . testAnalyticsId ] ) return ;
170177 if ( this . testObservability == true ) {
171178 if ( ! this . runStatusMarkedHash [ test . testAnalyticsId ] ) {
0 commit comments