How can I change the port in runner console?
Closed this issue · 2 comments
renatocassino commented
Hello guys.
I'm running tests in console. This is my task.
gulp.task('jasmine-phantom', function() {
return gulp.src(['static/hui/js/*.js', 'spec/javascripts/hui/*.js'])
.pipe(jasmineBrowser.specRunner({console: true}))
.pipe(jasmineBrowser.headless());
});
But the server are creating in port 8000. How can I change the port?
I tried to add {port: 5555} in headless and in specRunner, but doesn't work.
Thanks for this.
renatocassino commented
I can solve my problem! lol
The script search an open port to use. To force a port must pass the findOpenPort as false.
.pipe(jasmineBrowser.headless({port: 5555, findOpenPort: false}));
rdy commented
I'll make sure to update the readme to indicate how to do this.