exports.local = {
  webdriver: {
    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)
  }
}

@@ -1,8 +1,40 @@
+var grunt = require('grunt');%0A%0A%0A
 exports.
@@ -71,22 +71,16 @@
 emote: %7B
-%0A     
  protoco
@@ -90,22 +90,16 @@
 'http:',
-%0A     
  hostnam
@@ -117,34 +117,20 @@
 .1',
-%0A     
  port: 
-'
 9515
-',%0A     
+,
  pat
@@ -139,20 +139,16 @@
  '/'
-%0A   
  %7D%0A  %7D,%0A
   br
@@ -147,42 +147,8 @@
  %7D,%0A
-  browser:%7BbrowserName:'chrome'%7D,%0A
   ur
@@ -263,51 +263,126 @@
     
-console.log('report.passed', report.passed)
+if (!report.passed)%7B%0A      grunt.fatal(%22tests failed%22);%0A    %7D%0A  %7D,%0A  onError: function(error)%7B%0A    grunt.fatal(error);
 %0A  %7D

add logging to webdriver config