test-agent
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -0,1 +1,4 @@ | ||
# 0.6.1 | ||
- Added wait-for-event option to js-test-agent test | ||
# 0.6.0 | ||
@@ -2,0 +5,0 @@ - Added new option and enhancement to server that will |
@@ -39,2 +39,8 @@ var Client = require('../../node/client'), | ||
}). | ||
option('event-timeout', { | ||
desc: 'Sets the timeout for the wait-for-event must be used with wait-for-event' | ||
}). | ||
option('wait-for-event', { | ||
desc: 'Event to wait for if event is not fied in "event-timeout" server will exit' | ||
}). | ||
argv; | ||
@@ -75,3 +81,10 @@ | ||
if(argv['wait-for-event'] && argv['event-timeout']) { | ||
client.use(Apps.EventOrTimeout, { | ||
event: argv['wait-for-event'], | ||
timeout: parseInt(argv['event-timeout']) | ||
}); | ||
} | ||
client.on('test runner end', function(runner){ | ||
@@ -78,0 +91,0 @@ var reporter = runner.getMochaReporter(); |
{ | ||
"name": "test-agent", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"author": "James Lal", | ||
@@ -5,0 +5,0 @@ "description": "execute client side tests from browser report back to cli", |
299350
10574