@@ -123,6 +123,7 @@ class MyReporter {
123
123
} )
124
124
125
125
. on ( EVENT_TEST_PASS , async ( test ) => {
126
+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_PASS` ) ;
126
127
if ( this . testObservability == true ) {
127
128
await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_PASS for uuid: ${ test . testAnalyticsId } ` ) ;
128
129
if ( ! this . runStatusMarkedHash [ test . testAnalyticsId ] ) {
@@ -133,6 +134,7 @@ class MyReporter {
133
134
} )
134
135
135
136
. on ( EVENT_TEST_FAIL , async ( test , err ) => {
137
+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_FAIL` ) ;
136
138
if ( this . testObservability == true ) {
137
139
await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_FAIL for uuid: ${ test . testAnalyticsId } ` ) ;
138
140
if ( ( test . testAnalyticsId && ! this . runStatusMarkedHash [ test . testAnalyticsId ] ) || ( test . hookAnalyticsId && ! this . runStatusMarkedHash [ test . hookAnalyticsId ] ) ) {
@@ -148,6 +150,7 @@ class MyReporter {
148
150
} )
149
151
150
152
. on ( EVENT_TEST_PENDING , async ( test ) => {
153
+ await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_PENDING` ) ;
151
154
if ( this . testObservability == true ) {
152
155
if ( ! test . testAnalyticsId ) test . testAnalyticsId = uuidv4 ( ) ;
153
156
await nodeRequestForLogs ( `[MOCHA EVENT] EVENT_TEST_PENDING for uuid: ${ test . testAnalyticsId } ` ) ;
@@ -159,13 +162,17 @@ class MyReporter {
159
162
} )
160
163
161
164
. 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 } ` ) ;
162
167
if ( this . runStatusMarkedHash [ test . testAnalyticsId ] ) return ;
163
168
if ( this . testObservability == true ) {
164
169
await this . testStarted ( test ) ;
165
170
}
166
171
} )
167
172
168
173
. 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 } ` ) ;
169
176
if ( this . runStatusMarkedHash [ test . testAnalyticsId ] ) return ;
170
177
if ( this . testObservability == true ) {
171
178
if ( ! this . runStatusMarkedHash [ test . testAnalyticsId ] ) {
0 commit comments