r104703 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104702‎ | r104703 | r104704 >
Date:17:10, 30 November 2011
Author:hashar
Status:deferred
Tags:
Comment:
--quiet suppress notification of passed tests

--no-quiet will make sure you always see PASSING tests :)
Modified paths:
  • /trunk/extensions/VisualEditor/tests/parser/parserTests.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/tests/parser/parserTests.js
@@ -24,6 +24,11 @@
2525 var optimist = require('optimist');
2626
2727 var argv = optimist.usage( 'Usage: $0', {
 28+ 'quiet': {
 29+ description: 'Suppress notification of passed tests (shows only failed tests)',
 30+ boolean: true,
 31+ default: false,
 32+ },
2833 'filter': {
2934 description: 'Only run tests whose descriptions which match given regex',
3035 alias: 'regex',
@@ -317,7 +322,9 @@
318323 console.log( colored_diff );
319324 } else {
320325 passedTests++;
 326+ if( !argv.quiet ) {
321327 console.log( 'PASSED'.green + ': ' + item.title.yellow );
 328+ }
322329 }
323330 }
324331 });

Status & tagging log