aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-03-11 16:06:17 +0100
committerGitHub <noreply@github.com>2019-03-11 16:06:17 +0100
commitca9356ecce0d45e80794e4fb1a94f283675526ba (patch)
treef0cf7d87845dd355746ebdc7c08729e6a750820e
parent6ced2639b567ab4a5089f38a8e90efedc12801bf (diff)
downloadjquery-ca9356ecce0d45e80794e4fb1a94f283675526ba.tar.gz
jquery-ca9356ecce0d45e80794e4fb1a94f283675526ba.zip
Build: Make Promises/A+ tests use the dot reporter instead of the default
The default reporter is very verbose as it prints all the test names it encounters. We already use the dot reporter for Karma tests. Closes gh-4313
-rw-r--r--build/tasks/promises_aplus_tests.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/build/tasks/promises_aplus_tests.js b/build/tasks/promises_aplus_tests.js
index 7f8153448..cb1a4fddb 100644
--- a/build/tasks/promises_aplus_tests.js
+++ b/build/tasks/promises_aplus_tests.js
@@ -1,9 +1,8 @@
-module.exports = function( grunt ) {
+"use strict";
- "use strict";
-
- var timeout = 2000,
- spawnTest = require( "./lib/spawn_test.js" );
+module.exports = grunt => {
+ const timeout = 2000;
+ const spawnTest = require( "./lib/spawn_test.js" );
grunt.registerTask( "promises_aplus_tests",
[ "promises_aplus_tests:deferred", "promises_aplus_tests:when" ] );
@@ -12,6 +11,7 @@ module.exports = function( grunt ) {
spawnTest( this.async(),
"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
" test/promises_aplus_adapters/deferred.js" +
+ " --reporter dot" +
" --timeout " + timeout
);
} );
@@ -20,6 +20,7 @@ module.exports = function( grunt ) {
spawnTest( this.async(),
"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
" test/promises_aplus_adapters/when.js" +
+ " --reporter dot" +
" --timeout " + timeout
);
} );