@@ -278,7 +278,7 @@ describe('install', () => {
278278 expect ( coreStub . info ) . calledWith ( 'test data' ) ;
279279 expect ( coreStub . endGroup ) . has . callCount ( 1 ) ;
280280 } ) ;
281- it ( 'fetches summary files even on errors' , async ( ) => {
281+ it ( 'fetches summary files with details on errors' , async ( ) => {
282282 const stubReadfile = stub ( fs , 'readFile' ) ;
283283 stubReadfile . resolves ( Buffer . from ( 'test data' ) ) ;
284284 utilsStub . gatherSummaryFiles . resolves ( [ 'C:/tmp/summary.txt' ] ) ;
@@ -287,13 +287,23 @@ describe('install', () => {
287287 await install ( ) ;
288288 } catch ( e ) {
289289 expect ( e ) . to . have . property ( 'message' , 'synthetic error' ) ;
290+ expect ( utilsStub . gatherSummaryFiles ) . to . have . been . calledOnceWith ( true ) ;
290291 expect ( coreStub . startGroup ) . calledOnceWith ( 'summary.txt' ) ;
291292 expect ( coreStub . info ) . calledOnceWith ( 'test data' ) ;
292293 expect ( coreStub . endGroup ) . has . callCount ( 1 ) ;
293294 return ;
294295 }
295296 expect . fail ( 'expected to throw' ) ;
296297 } ) ;
298+ it ( 'fetches summary detail files during debug' , async ( ) => {
299+ const stubReadfile = stub ( fs , 'readFile' ) ;
300+ stubReadfile . resolves ( Buffer . from ( 'test data' ) ) ;
301+ utilsStub . gatherSummaryFiles . resolves ( [ 'C:/tmp/summary.txt' ] ) ;
302+ coreStub . isDebug . returns ( true ) ;
303+ await install ( ) ;
304+ expect ( utilsStub . gatherSummaryFiles ) . to . have . been . calledOnceWith ( true ) ;
305+ expect ( coreStub . info ) . calledWith ( 'test data' ) ;
306+ } ) ;
297307 it ( 'installs native client if needed' , async ( ) => {
298308 utilsStub . gatherInputs . returns ( {
299309 version : 'box' ,
0 commit comments