@@ -9,6 +9,8 @@ const request = require("request"),
9
9
tableStream = require ( 'table' ) . createStream ,
10
10
chalk = require ( 'chalk' ) ;
11
11
12
+ const { inspect } = require ( 'util' ) ;
13
+
12
14
let whileLoop = true , whileTries = config . retries , options , timeout = 3000 , n = 2 , tableConfig , stream , endTime , startTime = Date . now ( ) , buildStarted = false ;
13
15
let specSummary = {
14
16
"buildError" : null ,
@@ -190,14 +192,16 @@ let printInitialLog = () => {
190
192
}
191
193
192
194
let printSpecData = ( data ) => {
195
+ console . log ( `roshan1: the printSpecData ${ inspect ( data ) } ` )
193
196
let combination = getCombinationName ( data [ "spec" ] ) ;
194
- let status = getStatus ( data [ "spec" ] [ "status" ] ) ;
195
- writeToTable ( combination , data [ "path" ] , status )
196
- addSpecToSummary ( data [ "path" ] , data [ "spec" ] [ "status" ] , combination , data [ "session_id" ] )
197
+ let status = data [ "spec" ] [ "status" ] ;
198
+ let statusMark = getStatus ( status ) ;
199
+ writeToTable ( combination , data [ "path" ] , status , statusMark )
200
+ addSpecToSummary ( data [ "path" ] , status , combination , data [ "session_id" ] )
197
201
}
198
202
199
- let writeToTable = ( combination , specName , status ) => {
200
- stream . write ( [ combination , ":" , `${ specName } ${ status } ` ] ) ;
203
+ let writeToTable = ( combination , specName , status , statusMark ) => {
204
+ stream . write ( [ combination , ":" , `${ specName } ${ statusMark } [ ${ status } ] ` ] ) ;
201
205
}
202
206
203
207
let addSpecToSummary = ( specName , status , combination , session_id ) => {
@@ -220,6 +224,9 @@ let getStatus = (status) => {
220
224
return chalk . green ( "✔" ) ;
221
225
case "failed" :
222
226
return chalk . red ( "✘" ) ;
227
+ case "passed_with_pending" :
228
+ case "passed_with_skipped" :
229
+ return chalk . blueBright ( "✔" ) ;
223
230
default :
224
231
return chalk . blue ( `[${ status } ]` ) ;
225
232
}
0 commit comments