Index: trunk/extensions/VisualEditor/tests/parser/parserTests.js |
— | — | @@ -24,6 +24,11 @@ |
25 | 25 | var optimist = require('optimist'); |
26 | 26 | |
27 | 27 | 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 | + }, |
28 | 33 | 'filter': { |
29 | 34 | description: 'Only run tests whose descriptions which match given regex', |
30 | 35 | alias: 'regex', |
— | — | @@ -317,7 +322,9 @@ |
318 | 323 | console.log( colored_diff ); |
319 | 324 | } else { |
320 | 325 | passedTests++; |
| 326 | + if( !argv.quiet ) { |
321 | 327 | console.log( 'PASSED'.green + ': ' + item.title.yellow ); |
| 328 | + } |
322 | 329 | } |
323 | 330 | } |
324 | 331 | }); |