Skip to content

Commit

Permalink
Build: Make Promises/A+ tests use the dot reporter instead of the def…
Browse files Browse the repository at this point in the history
…ault

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
  • Loading branch information
mgol committed Mar 11, 2019
1 parent 6ced263 commit ca9356e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build/tasks/promises_aplus_tests.js
@@ -1,9 +1,8 @@
module.exports = function( grunt ) { "use strict";


"use strict"; module.exports = grunt => {

const timeout = 2000;
var timeout = 2000, const spawnTest = require( "./lib/spawn_test.js" );
spawnTest = require( "./lib/spawn_test.js" );


grunt.registerTask( "promises_aplus_tests", grunt.registerTask( "promises_aplus_tests",
[ "promises_aplus_tests:deferred", "promises_aplus_tests:when" ] ); [ "promises_aplus_tests:deferred", "promises_aplus_tests:when" ] );
Expand All @@ -12,6 +11,7 @@ module.exports = function( grunt ) {
spawnTest( this.async(), spawnTest( this.async(),
"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" + "\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
" test/promises_aplus_adapters/deferred.js" + " test/promises_aplus_adapters/deferred.js" +
" --reporter dot" +
" --timeout " + timeout " --timeout " + timeout
); );
} ); } );
Expand All @@ -20,6 +20,7 @@ module.exports = function( grunt ) {
spawnTest( this.async(), spawnTest( this.async(),
"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" + "\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
" test/promises_aplus_adapters/when.js" + " test/promises_aplus_adapters/when.js" +
" --reporter dot" +
" --timeout " + timeout " --timeout " + timeout
); );
} ); } );
Expand Down

0 comments on commit ca9356e

Please sign in to comment.