diff --git a/grunt/config/webdriver-jasmine.js b/grunt/config/webdriver-jasmine.js index e89da4f6b7..747b7214eb 100644 --- a/grunt/config/webdriver-jasmine.js +++ b/grunt/config/webdriver-jasmine.js @@ -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); } }