Skip to content

Commit f811740

Browse files
committed
Updating grunt-saucelabs package.
Required a workaround for exposing test results to the Sauce Labs API.
1 parent e3a19c3 commit f811740

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎Gruntfile.js‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ module.exports = function (grunt) {
7676
all: {
7777
options: {
7878
urls: ['http://127.0.0.1:9999/test/index.html'],
79-
tunnelTimeout: 5,
8079
build: process.env.TRAVIS_JOB_ID,
81-
concurrency: 3,
8280
browsers: [
8381
// iOS
8482
{
@@ -160,8 +158,7 @@ module.exports = function (grunt) {
160158
platform: 'Linux',
161159
version: '29'
162160
}
163-
],
164-
testname: 'jquery.cookie qunit tests'
161+
]
165162
}
166163
}
167164
}

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"grunt-contrib-qunit": "~0.2.0",
2525
"grunt-contrib-watch": "~0.6.1",
2626
"grunt-compare-size": "~0.4.0",
27-
"grunt-saucelabs": "~4.1.1",
27+
"grunt-saucelabs": "~7.0.0",
2828
"grunt-contrib-connect": "~0.7.1",
2929
"gzip-js": "~0.3.0"
3030
},

‎test/tests.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
// Required for exposing test results to the Sauce Labs API.
2+
// Can be removed when the following issue is fixed:
3+
// https://github.com/axemclion/grunt-saucelabs/issues/84
4+
QUnit.done(function (details) {
5+
window.global_test_results = details;
6+
});
7+
8+
19
var lifecycle = {
210
teardown: function () {
311
$.cookie.defaults = {};

0 commit comments

Comments
 (0)