Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
Updating grunt-saucelabs package.
Browse files Browse the repository at this point in the history
Required a workaround for exposing test results to the Sauce Labs API.
  • Loading branch information
carhartl committed May 30, 2014
1 parent e3a19c3 commit f811740
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Gruntfile.js
Expand Up @@ -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
{
Expand Down Expand Up @@ -160,8 +158,7 @@ module.exports = function (grunt) {
platform: 'Linux',
version: '29'
}
],
testname: 'jquery.cookie qunit tests'
]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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"
},
Expand Down
8 changes: 8 additions & 0 deletions 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 = {};
Expand Down

0 comments on commit f811740

Please sign in to comment.