From f81174035cc52298efb5a31afc86026516ad29ca Mon Sep 17 00:00:00 2001 From: Klaus Hartl Date: Fri, 30 May 2014 21:45:19 +0200 Subject: [PATCH] Updating grunt-saucelabs package. Required a workaround for exposing test results to the Sauce Labs API. --- Gruntfile.js | 5 +---- package.json | 2 +- test/tests.js | 8 ++++++++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 9751c56..5b44abb 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -76,9 +76,7 @@ module.exports = function (grunt) { all: { options: { urls: ['http://127.0.0.1:9999/test/index.html'], - tunnelTimeout: 5, build: process.env.TRAVIS_JOB_ID, - concurrency: 3, browsers: [ // iOS { @@ -160,8 +158,7 @@ module.exports = function (grunt) { platform: 'Linux', version: '29' } - ], - testname: 'jquery.cookie qunit tests' + ] } } } diff --git a/package.json b/package.json index e865106..46c89b5 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "grunt-contrib-qunit": "~0.2.0", "grunt-contrib-watch": "~0.6.1", "grunt-compare-size": "~0.4.0", - "grunt-saucelabs": "~4.1.1", + "grunt-saucelabs": "~7.0.0", "grunt-contrib-connect": "~0.7.1", "gzip-js": "~0.3.0" }, diff --git a/test/tests.js b/test/tests.js index bd32552..008f121 100644 --- a/test/tests.js +++ b/test/tests.js @@ -1,3 +1,11 @@ +// Required for exposing test results to the Sauce Labs API. +// Can be removed when the following issue is fixed: +// https://github.com/axemclion/grunt-saucelabs/issues/84 +QUnit.done(function (details) { + window.global_test_results = details; +}); + + var lifecycle = { teardown: function () { $.cookie.defaults = {};