Skip to content

Commit f70999d

Browse files
committed
Remove unused spec reporter
1 parent 097e448 commit f70999d

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,8 @@
109109
"karma-coverage": "^1.1.1",
110110
"karma-firefox-launcher": "^1.0.1",
111111
"karma-jasmine": "^1.1.0",
112-
"karma-parallel": "^0.2.9",
113112
"karma-sauce-launcher": "^1.2.0",
114113
"karma-sourcemap-loader": "^0.3.7",
115-
"karma-spec-reporter": "^0.0.32",
116114
"madge": "^2.2.0",
117115
"magic-string": "^0.22.4",
118116
"minimatch": "^3.0.4",

test/karma.conf.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)