File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,15 @@ export function NewContext(conf: Config) {
36
36
} catch ( err ) {
37
37
console . log ( "Failed to get the path of current directory" ) ;
38
38
console . log ( err ) ;
39
+ console . log ( "Keploy mode:" , process . env . KEPLOY_MODE )
39
40
}
40
41
} else if ( path [ 0 ] !== "/" ) {
41
42
try {
42
43
path = resolve ( conf . Path ) ;
43
44
} catch ( err ) {
44
45
console . log ( "Failed to get the absolute path from relative conf.path" ) ;
45
46
console . log ( err ) ;
47
+ console . log ( "Keploy mode:" , process . env . KEPLOY_MODE )
46
48
}
47
49
}
48
50
path += "/mocks" ;
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ export default class HttpClient {
142
142
await http ( options ) ;
143
143
} catch ( error ) {
144
144
console . log ( error ) ;
145
+ console . log ( "Keploy mode:" , process . env . KEPLOY_MODE ) ;
145
146
}
146
147
}
147
148
}
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export default class Keploy {
132
132
133
133
async runTests ( ) {
134
134
if ( process . env . KEPLOY_MODE == "test" ) {
135
- console . log ( "test starting in " + this . appConfig . delay + "s" ) ;
135
+ console . log ( "test starting in " + this . appConfig . delay + "s" + " KEPLOY_MODE: " + process . env . KEPLOY_MODE ) ;
136
136
setTimeout ( async ( ) => {
137
137
await this . test ( ) ;
138
138
} , this . appConfig . delay * 1000 ) ;
@@ -241,6 +241,8 @@ export default class Keploy {
241
241
testId ,
242
242
" }, { total tests: " ,
243
243
totalTests ,
244
+ " },{ Keploy mode:" ,
245
+ process . env . KEPLOY_MODE ,
244
246
" }"
245
247
) ;
246
248
let pass = true ;
@@ -276,8 +278,10 @@ export default class Keploy {
276
278
if ( err !== null ) {
277
279
console . error (
278
280
"failed to call test method of keploy. error: " ,
279
- err
280
- ) ;
281
+ err ,
282
+ "Keploy mode:" ,
283
+ process . env . KEPLOY_MODE ,
284
+ ) ;
281
285
}
282
286
283
287
if ( response ?. pass ?. pass === false ) {
You can’t perform that action at this time.
0 commit comments