grunt-selenium-server
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -33,3 +33,4 @@ /* | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.registerTask('test', ['start-selenium-server:test', 'stop-selenium-server:test']); | ||
grunt.registerTask('default', ['jshint']); | ||
}; |
{ | ||
"name": "grunt-selenium-server", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Grunt task to start/stop a local Selenium standalon server.", | ||
@@ -5,0 +5,0 @@ "main": "Gruntfile.js", |
@@ -110,4 +110,10 @@ | ||
function hasSeleniumStarted(data) { | ||
if (data.toString().match(/Started SocketListener on .+:\d+/)) { | ||
if (complete) return; | ||
var str = data.toString(); | ||
if (str.match(/Selenium is already running/)) { | ||
cb(new Error(str)); | ||
} | ||
if (str.match(/Selenium Server is up and running/) || str.match(/Started SocketListener on .+:\d+/)) { | ||
if (complete) { | ||
return; | ||
} | ||
grunt.log.ok('Selenium server SocketListener started.'); | ||
@@ -125,3 +131,3 @@ | ||
childProcesses[target].stdout.on('data', hasSeleniumStarted); | ||
// >= 2.43.0 outputs to stdout | ||
// >= 2.43.0 outputs to stderr | ||
childProcesses[target].stderr.on('data', hasSeleniumStarted); | ||
@@ -149,3 +155,3 @@ | ||
var options = this.options({ | ||
downloadUrl: 'https://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar', | ||
downloadUrl: 'https://selenium-release.storage.googleapis.com/2.46/selenium-server-standalone-2.46.0.jar', | ||
downloadLocation: os.tmpdir(), | ||
@@ -189,5 +195,5 @@ serverOptions: {}, | ||
grunt.log.ok('Sending kill signal to child process.'); | ||
childProcesses[target].kill('SIGTERM'); | ||
childProcesses[target].kill('SIGINT'); | ||
} | ||
}); | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8988
193