@@ -124,6 +124,7 @@ class MyReporter {
124
124
125
125
. on ( EVENT_TEST_PASS , async ( test ) => {
126
126
if ( this . testObservability == true ) {
127
+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_PASS for uuid: ${ test . testAnalyticsId } ` ) ;
127
128
if ( ! this . runStatusMarkedHash [ test . testAnalyticsId ] ) {
128
129
if ( test . testAnalyticsId ) this . runStatusMarkedHash [ test . testAnalyticsId ] = true ;
129
130
await this . sendTestRunEvent ( test ) ;
@@ -133,6 +134,7 @@ class MyReporter {
133
134
134
135
. on ( EVENT_TEST_FAIL , async ( test , err ) => {
135
136
if ( this . testObservability == true ) {
137
+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_FAIL for uuid: ${ test . testAnalyticsId } ` ) ;
136
138
if ( ( test . testAnalyticsId && ! this . runStatusMarkedHash [ test . testAnalyticsId ] ) || ( test . hookAnalyticsId && ! this . runStatusMarkedHash [ test . hookAnalyticsId ] ) ) {
137
139
if ( test . testAnalyticsId ) {
138
140
this . runStatusMarkedHash [ test . testAnalyticsId ] = true ;
@@ -148,6 +150,7 @@ class MyReporter {
148
150
. on ( EVENT_TEST_PENDING , async ( test ) => {
149
151
if ( this . testObservability == true ) {
150
152
if ( ! test . testAnalyticsId ) test . testAnalyticsId = uuidv4 ( ) ;
153
+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_PENDING for uuid: ${ test . testAnalyticsId } ` ) ;
151
154
if ( ! this . runStatusMarkedHash [ test . testAnalyticsId ] ) {
152
155
this . runStatusMarkedHash [ test . testAnalyticsId ] = true ;
153
156
await this . sendTestRunEvent ( test , undefined , false , "TestRunSkipped" ) ;
@@ -214,6 +217,7 @@ class MyReporter {
214
217
this . current_test = test ;
215
218
test . retryOf = null ;
216
219
test . testAnalyticsId = uuidv4 ( ) ;
220
+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_BEGIN for uuid: ${ test . testAnalyticsId } ` ) ;
217
221
test . started_at = ( new Date ( ) ) . toISOString ( ) ;
218
222
test . test_started_at = test . started_at ;
219
223
if ( test . _currentRetry > 0 && lastTest && lastTest . title == test . title ) {
0 commit comments