@@ -51,7 +51,7 @@ module.exports = (config) => {
5151 'dist/packages/**/*.js' : [ 'sourcemap' ]
5252 } ,
5353
54- reporters : [ 'dots' ] ,
54+ reporters : [ 'dots' , 'spec' ] ,
5555 autoWatch : false ,
5656
5757 coverageReporter : {
@@ -60,10 +60,12 @@ module.exports = (config) => {
6060 subdir : '.'
6161 } ,
6262
63- // TODO(josephperrott): Determine how to properly disable extra output on ci.
63+ // Configuration for the advanced karma spec reporter. By default we only want to use that
64+ // reporter to display the test that failed. To do this, we have to suppress tests that pass.
6465 specReporter : {
6566 maxLogLines : Infinity , // Log out the entire stack trace on errors and failures.
6667 suppressSkipped : true ,
68+ suppressPassed : true ,
6769 showSpecTiming : true ,
6870 } ,
6971
@@ -90,8 +92,8 @@ module.exports = (config) => {
9092 browserDisconnectTolerance : 3 ,
9193 browserNoActivityTimeout : 300000 ,
9294 captureTimeout : 180000 ,
93- browsers : [ 'ChromeHeadlessLocal' ] ,
9495
96+ browsers : [ 'ChromeHeadlessLocal' ] ,
9597 singleRun : false ,
9698
9799 browserConsoleLogOptions : {
@@ -115,8 +117,6 @@ module.exports = (config) => {
115117
116118 config . preprocessors [ 'dist/packages/**/!(*+(.|-)spec).js' ] = [ 'coverage' ] ;
117119 config . reporters . push ( 'coverage' ) ;
118- // Hide passed tests from logs while on travis.
119- config . specReporter . suppressPassed = true ;
120120 }
121121
122122 // The MODE variable is the indicator of what row in the test matrix we're running.
0 commit comments