@@ -45,6 +45,7 @@ export class TestReporter {
4545 synchronous ?: boolean ;
4646 json ?: boolean ;
4747 'code-coverage' ?: boolean ;
48+ concise : boolean ;
4849 }
4950 ) : Promise < RunResult > {
5051 if ( options [ 'output-dir' ] ) {
@@ -55,6 +56,7 @@ export class TestReporter {
5556 options [ 'output-dir' ] ,
5657 options [ 'result-format' ] as ResultFormat | undefined ,
5758 Boolean ( options [ 'detailed-coverage' ] ) ,
59+ options [ 'concise' ] ,
5860 options . synchronous
5961 ) ;
6062
@@ -69,7 +71,7 @@ export class TestReporter {
6971 }
7072 switch ( options [ 'result-format' ] ) {
7173 case 'human' :
72- this . logHuman ( result , options [ 'detailed-coverage' ] as boolean , options [ 'output-dir' ] ) ;
74+ this . logHuman ( result , options [ 'detailed-coverage' ] as boolean , options [ 'concise' ] , options [ ' output-dir'] ) ;
7375 break ;
7476 case 'tap' :
7577 this . logTap ( result ) ;
@@ -87,7 +89,7 @@ export class TestReporter {
8789 }
8890 break ;
8991 default :
90- this . logHuman ( result , options [ 'detailed-coverage' ] as boolean , options [ 'output-dir' ] ) ;
92+ this . logHuman ( result , options [ 'detailed-coverage' ] as boolean , options [ 'concise' ] , options [ ' output-dir'] ) ;
9193 }
9294 } catch ( e ) {
9395 this . ux . styledJSON ( result ) ;
@@ -114,6 +116,7 @@ export class TestReporter {
114116 outputDir : string ,
115117 resultFormat : ResultFormat | undefined ,
116118 detailedCoverage : boolean ,
119+ concise : boolean ,
117120 synchronous = false
118121 ) : OutputDirConfig {
119122 const outputDirConfig : OutputDirConfig = {
@@ -162,7 +165,7 @@ export class TestReporter {
162165 case ResultFormat . human :
163166 outputDirConfig . fileInfos ?. push ( {
164167 filename : 'test-result.txt' ,
165- content : new HumanReporter ( ) . format ( result , detailedCoverage ) ,
168+ content : new HumanReporter ( ) . format ( result , detailedCoverage , concise ) ,
166169 } ) ;
167170 break ;
168171 default :
@@ -182,12 +185,12 @@ export class TestReporter {
182185 }
183186 }
184187
185- private logHuman ( result : TestResult , detailedCoverage : boolean , outputDir ?: string ) : void {
188+ private logHuman ( result : TestResult , detailedCoverage : boolean , concise : boolean , outputDir ?: string ) : void {
186189 if ( outputDir ) {
187190 this . ux . log ( messages . getMessage ( 'outputDirHint' , [ outputDir ] ) ) ;
188191 }
189192 const humanReporter = new HumanReporter ( ) ;
190- const output = humanReporter . format ( result , detailedCoverage ) ;
193+ const output = humanReporter . format ( result , detailedCoverage , concise ) ;
191194 this . ux . log ( output ) ;
192195 }
193196
0 commit comments