Permalink
Browse files

Merge branch 'master' of github.com:yui/yogi

  • Loading branch information...
2 parents a6b7cbd + b62d90a commit b3a95ab30e52bcc14723d854a035c6415d8b48d1 @davglass davglass committed Apr 11, 2013
Showing with 13 additions and 7 deletions.
  1. +8 −7 bin/yogi.js
  2. +5 −0 lib/cmds/test.js
View
@@ -8,6 +8,11 @@ http://yuilibrary.com/license/
var args = require('../lib/args');
var log = require('../lib/log');
+var config = require('../lib/config');
+var which = require('which');
+var spawn = require('win-spawn');
+var path = require('path');
+var options = args.parse();
try {
@@ -46,16 +51,12 @@ try {
} catch (e) {
log.debug('Failed to setup tab-completion module');
- console.log(e);
+ if (options.parsed.loglevel === 'debug') {
+ console.log(e);
+ }
}
-var config = require('../lib/config');
-var which = require('which');
-var spawn = require('win-spawn');
-var path = require('path');
-
-var options = args.parse();
config.init(options);
var version = require('../lib/cmds/version');
if (options.main && options.main !== 'version') {
View
@@ -543,6 +543,11 @@ mods = {
tests.unshift('--junit');
}
+ if (this.options.parsed.quiet) {
+ tests.unshift('--quiet');
+ log.info('running in quiet mode, only failing tests will print');
+ }
+
if (this.coverage) {
log.info('turning on coverage support in grover');
tests.unshift('?filter=coverage');

0 comments on commit b3a95ab

Please sign in to comment.