Permalink
Browse files

Added more grover passthru commands

  • Loading branch information...
1 parent 66b4929 commit 25aa130a4b713d8baa43d70eedb4b9f52adb6f1b @davglass davglass committed Dec 21, 2012
Showing with 16 additions and 9 deletions.
  1. +3 −1 lib/args.js
  2. +12 −7 lib/cmds/test.js
  3. +1 −1 package.json
View
4 lib/args.js
@@ -42,7 +42,9 @@ var nopt = require('nopt'),
help: Boolean,
yes: Boolean,
force: Boolean,
- screwdriver: Boolean,
+ coverdir: path,
+ junit: Boolean,
+ outfile: path,
loglevel: [ 'silent', 'info', 'debug', 'warn' ],
lint: [ 'defaults', 'strict', 'preferred' ],
filter: [ 'raw', 'min', 'debug', 'coverage' ]
View
19 lib/cmds/test.js
@@ -25,10 +25,6 @@ mods = {
if (options.parsed.port) {
portfinder.basePort = options.parsed.port;
}
- if (this.options.parsed.screwdriver) {
- this.options.parsed.istanbul = true;
- this.coverage = true;
- }
this.useYeti = options.parsed.yeti;
this.yetiHub = options.parsed.hub || 'http://hub.davglass.com:8080/';
@@ -459,9 +455,18 @@ mods = {
tests.unshift('--phantom-bin');
}
- if (this.options.parsed.screwdriver) {
- log.info('activating screwdriver support');
- tests.unshift('--screwdriver');
+ if (this.options.parsed.coverdir) {
+ tests.unshift(this.options.parsed.coverdir);
+ tests.unshift('--coverdir');
+ }
+
+ if (this.options.parsed.outfile) {
+ tests.unshift(this.options.parsed.outfile);
+ tests.unshift('--outfile');
+ }
+
+ if (this.options.parsed.junit) {
+ tests.unshift('--junit');
}
if (this.coverage) {
View
2 package.json
@@ -7,7 +7,7 @@
"yogi": "./bin/yogi.js"
},
"dependencies": {
- "grover": "~0.1.9",
+ "grover": "~0.1.10",
"yuidocjs": "~0.3.31",
"selleck": "*",
"yuitest": "*",

0 comments on commit 25aa130

Please sign in to comment.