Skip to content
Browse files

Configure port for testing

  • Loading branch information...
1 parent d6f0564 commit 79c94b75d5e4be59c5d5aa18f7a751ffe0b579e5 @davglass davglass committed Dec 18, 2012
Showing with 6 additions and 0 deletions.
  1. +1 −0 lib/args.js
  2. +5 −0 lib/cmds/test.js
View
1 lib/args.js
@@ -32,6 +32,7 @@ var nopt = require('nopt'),
'show-merge': Boolean,
name: String,
group: String,
+ port: Number,
init: Boolean,
path: String,
test: Boolean,
View
5 lib/cmds/test.js
@@ -22,6 +22,10 @@ mods = {
this.options = options;
portfinder.basePort = 5000;
+ if (options.parsed.port) {
+ portfinder.basePort = options.parsed.port;
+ }
+
this.useYeti = options.parsed.yeti;
this.yetiHub = options.parsed.hub || 'http://hub.davglass.com:8080/';
this.yetiAgents = options.parsed.agents;
@@ -514,6 +518,7 @@ mods = {
'run from inside a module to test it',
'pass extra modules to test them too.',
'from ./src to test all',
+ '--port <number> to change the testing port',
'--coverage to generate a coverage report',
'--cli to run only cli tests',
'--filter (min|raw|debug) pass filter to test files',

0 comments on commit 79c94b7

Please sign in to comment.
Something went wrong with that request. Please try again.