mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
add logging to webdriver config
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
var grunt = require('grunt');
|
||||
|
||||
|
||||
exports.local = {
|
||||
webdriver: {
|
||||
remote: {
|
||||
protocol: 'http:',
|
||||
hostname: '127.0.0.1',
|
||||
port: '9515',
|
||||
path: '/'
|
||||
}
|
||||
remote: { protocol: 'http:', hostname: '127.0.0.1', port: 9515, path: '/' }
|
||||
},
|
||||
browser:{browserName:'chrome'},
|
||||
url: "http://127.0.0.1:9999/test/sauce-harness.html",
|
||||
onComplete: function(report){
|
||||
var browser = this;
|
||||
console.log('report.passed', report.passed)
|
||||
if (!report.passed){
|
||||
grunt.fatal("tests failed");
|
||||
}
|
||||
},
|
||||
onError: function(error){
|
||||
grunt.fatal(error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user