Index: trunk/extensions/VisualEditor/tests/parser/parserTests.js |
— | — | @@ -34,6 +34,11 @@ |
35 | 35 | boolean: true, |
36 | 36 | default: false, |
37 | 37 | }, |
| 38 | + 'color': { |
| 39 | + description: 'Enable color output Ex: --no-color', |
| 40 | + boolean: true, |
| 41 | + default: true, |
| 42 | + }, |
38 | 43 | 'filter': { |
39 | 44 | description: 'Only run tests whose descriptions which match given regex', |
40 | 45 | alias: 'regex', |
— | — | @@ -48,7 +53,7 @@ |
49 | 54 | alias: 'h', |
50 | 55 | }, |
51 | 56 | 'disabled': { |
52 | | - description: 'Run disabled tests (default false) (option not implemented)', |
| 57 | + description: 'Run disabled tests (option not implemented)', |
53 | 58 | default: false, |
54 | 59 | boolean: true, |
55 | 60 | }, |
— | — | @@ -66,6 +71,7 @@ |
67 | 72 | ).argv // keep that |
68 | 73 | ; |
69 | 74 | |
| 75 | + |
70 | 76 | if( argv.help ) { |
71 | 77 | optimist.showHelp(); |
72 | 78 | process.exit( 0 ); |
— | — | @@ -75,6 +81,9 @@ |
76 | 82 | test_filter = new RegExp( argv.filter ); |
77 | 83 | console.log( "Filtering title test using Regexp " + test_filter ); |
78 | 84 | } |
| 85 | +if( !argv.color ) { |
| 86 | + colors.mode = 'none'; |
| 87 | +} |
79 | 88 | |
80 | 89 | // @fixme wrap more or this setup in a common module |
81 | 90 | |