add logging to webdriver config
Thomas Aylott committed
Nov 6, 2013 at 15:19 UTC
3e2d3e48375af253fa85243f13bcb5492fd74875
1 file changed
+10
-8
grunt/config/webdriver-jasmine.js
+10
-8
@@ -1,16 +1,18 @@
1
+var grunt = require('grunt');
2
+
3
+
4
exports.local = {
5
webdriver: {
3
- remote: {
4
- protocol: 'http:',
5
- hostname: '127.0.0.1',
6
- port: '9515',
7
- path: '/'
8
- }
6
+ remote: { protocol: 'http:', hostname: '127.0.0.1', port: 9515, path: '/' }
7
},
10
- browser:{browserName:'chrome'},
8
url: "http://127.0.0.1:9999/test/sauce-harness.html",
9
onComplete: function(report){
10
var browser = this;
14
- console.log('report.passed', report.passed)
11
+ if (!report.passed){
12
+ grunt.fatal("tests failed");
13
+ }
14
+ },
15
+ onError: function(error){
16
+ grunt.fatal(error);
17
}
18
}