@@ -14,8 +14,6 @@ module.exports = (config) => {
1414 require ( 'karma-firefox-launcher' ) ,
1515 require ( 'karma-sourcemap-loader' ) ,
1616 require ( 'karma-coverage' ) ,
17- require ( 'karma-spec-reporter' ) ,
18- require ( 'karma-parallel' ) ,
1917 ] ,
2018 files : [
2119 { pattern : 'node_modules/core-js/client/core.js' , included : true , watched : false } ,
@@ -51,7 +49,7 @@ module.exports = (config) => {
5149 'dist/packages/**/*.js' : [ 'sourcemap' ]
5250 } ,
5351
54- reporters : [ 'dots' , 'spec' ] ,
52+ reporters : [ 'dots' ] ,
5553 autoWatch : false ,
5654
5755 coverageReporter : {
@@ -60,15 +58,6 @@ module.exports = (config) => {
6058 subdir : '.'
6159 } ,
6260
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.
65- specReporter : {
66- maxLogLines : Infinity , // Log out the entire stack trace on errors and failures.
67- suppressSkipped : true ,
68- suppressPassed : true ,
69- showSpecTiming : true ,
70- } ,
71-
7261 sauceLabs : {
7362 testName : 'material2' ,
7463 startConnect : false ,
@@ -103,8 +92,7 @@ module.exports = (config) => {
10392
10493 client : {
10594 jasmine : {
106- // TODO(jelbourn): re-enable random test order once we can de-flake existing issues.
107- random : false
95+ random : true
10896 }
10997 } ,
11098 } ) ;
@@ -135,6 +123,8 @@ module.exports = (config) => {
135123 throw new Error ( `Platform "${ platform } " unknown, but Travis specified. Exiting.` ) ;
136124 }
137125
126+ // To guarantee a better stability for tests running on external browsers, we disable
127+ // concurrency. Stability is compared to speed more important.
138128 config . concurrency = 1 ;
139129 config . browsers = platformMap [ platform ] [ target . toLowerCase ( ) ] ;
140130 }
0 commit comments