Skip to content

Commit 030ae66

Browse files
Narretzpetebacondarwin
authored andcommitted
chore(travis): use "karma-spec-reporter"
dots reporter creates lots of empty space that makes it tedious to scroll through the logs. "Spec" is configured to only report on failures.
1 parent b85926b commit 030ae66

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

karma-shared.conf.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@ module.exports = function(config, specificOptions) {
1010
browserDisconnectTimeout: 10000,
1111
browserDisconnectTolerance: 2,
1212
browserNoActivityTimeout: 30000,
13-
14-
13+
reporters: ['spec'],
14+
specReporter: {
15+
maxLogLines: 5, // limit number of lines logged per test
16+
suppressErrorSummary: true, // do not print error summary
17+
suppressFailed: false, // do not print information about failed tests
18+
suppressPassed: true, // do not print information about passed tests
19+
suppressSkipped: false, // do not print information about skipped tests
20+
showSpecTiming: false, // print the time elapsed for each spec
21+
failFast: false // test would finish with error when a first fail occurs.
22+
},
1523
// SauceLabs config for local development.
1624
sauceLabs: {
1725
testName: specificOptions.testName || 'AngularJS',

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"karma-ng-scenario": "^1.0.0",
7070
"karma-sauce-launcher": "^1.1.0",
7171
"karma-script-launcher": "^1.0.0",
72+
"karma-spec-reporter": "^0.0.31",
7273
"load-grunt-tasks": "^3.5.0",
7374
"lodash": "~2.4.1",
7475
"log4js": "^0.6.27",

scripts/travis/build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ elif [ "$JOB" == "unit" ]; then
1515
fi
1616

1717
grunt test:promises-aplus
18-
grunt test:unit --browsers="$BROWSERS" --reporters=dots
19-
grunt tests:docs --browsers="$BROWSERS" --reporters=dots
18+
grunt test:unit --browsers="$BROWSERS" --reporters=spec
19+
grunt tests:docs --browsers="$BROWSERS" --reporters=spec
2020
elif [ "$JOB" == "docs-e2e" ]; then
2121
grunt test:travis-protractor --specs="docs/app/e2e/**/*.scenario.js"
2222
elif [ "$JOB" == "e2e" ]; then

yarn.lock

+7-1
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ [email protected]:
10931093
version "1.0.3"
10941094
resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b"
10951095

1096-
colors@^1.1.0, colors@~1.1.2:
1096+
colors@^1.1.0, colors@^1.1.2, colors@~1.1.2:
10971097
version "1.1.2"
10981098
resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"
10991099

@@ -3649,6 +3649,12 @@ karma-script-launcher@^1.0.0:
36493649
version "1.0.0"
36503650
resolved "https://registry.yarnpkg.com/karma-script-launcher/-/karma-script-launcher-1.0.0.tgz#cd017c4de5ef09e5a9da793276176108dd4b542d"
36513651

3652+
karma-spec-reporter@^0.0.31:
3653+
version "0.0.31"
3654+
resolved "https://registry.yarnpkg.com/karma-spec-reporter/-/karma-spec-reporter-0.0.31.tgz#4830dc7148a155c7d7a186e632339a0d80fadec3"
3655+
dependencies:
3656+
colors "^1.1.2"
3657+
36523658
karma@^1.7.0:
36533659
version "1.7.0"
36543660
resolved "https://registry.yarnpkg.com/karma/-/karma-1.7.0.tgz#6f7a1a406446fa2e187ec95398698f4cee476269"

0 commit comments

Comments
 (0)