Skip to content

Commit

Permalink
fix(output): split output by line
Browse files Browse the repository at this point in the history
helps detecting events in output such as start.

fixes seckardt#20
  • Loading branch information
GuyMograbi committed Oct 10, 2015
1 parent 07ba460 commit 6b8c982
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@
"node": ">= 0.8.0"
},
"devDependencies": {
"express": "~3.5.0",
"grunt": "~0.4.5",
"grunt-contrib-jshint": "~0.10.0",
"grunt-protractor-runner": "~1.1.4",
"grunt-express": "~1.3.5",
"grunt-protractor-runner": "~1.1.4",
"grunt-shell": "~1.1.1",
"protractor": "~1.4.0",
"express": "~3.5.0",
"grunt": "~0.4.5"
"split": "^1.0.0"
},
"peerDependencies": {
"grunt": ">=0.4.4",
Expand All @@ -43,4 +44,4 @@
"selenium",
"testing"
]
}
}
5 changes: 3 additions & 2 deletions tasks/protractor_webdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = function (grunt) {

var spawn = require('child_process').spawn,
http = require('http'),
split = require('split'),
rl = require('readline'),
noop = function () {},
REGEXP_REMOTE = /RemoteWebDriver instances should connect to: (.*)/,
Expand Down Expand Up @@ -88,8 +89,8 @@ module.exports = function (grunt) {

selenium.stdout.setEncoding('utf8');
selenium.stderr.setEncoding('utf8');
selenium.stdout.on('data', data);
selenium.stderr.on('data', data);
selenium.stdout.pipe(split()).on('data', data);
selenium.stderr.pipe(split()).on('data', data);

destroy = exit(selenium);
}
Expand Down

0 comments on commit 6b8c982

Please sign in to comment.