Skip to content

Commit e0e5412

Browse files
committed
Upgraded to SauceLabs 8.1.0, it is more stable.
1 parent 8f3f32e commit e0e5412

File tree

4 files changed

+33
-10
lines changed

4 files changed

+33
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
npm-debug.log
55
.sizecache.json
66
sauce_connect.log
7+
sc_*.log

Gruntfile.coffee

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ module.exports = (grunt) ->
5252

5353
# username: process.env.SAUCE_USERNAME,
5454
# key: process.env.SAUCE_ACCESS_KEY,
55-
tunnelTimeout: 5
5655
build: process.env.TRAVIS_JOB_ID
57-
concurrency: 3
56+
throttled: 10
5857
browsers: [
5958
{ browserName: "chrome", platform: "Windows 7" }
6059
{ browserName: "firefox", platform: "Windows 7" }

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"grunt-contrib-qunit": "~0.2.0",
4545
"grunt-contrib-uglify": "~0.2.0",
4646
"grunt-exec": "~0.4.0",
47-
"grunt-saucelabs": "~4.1.2",
47+
"grunt-saucelabs": "~8.1.0",
4848
"grunt-contrib-watch": "~0.5.3",
4949
"grunt-yabs": "0.0.6"
5050
},

test/tests.js

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ jQuery(document).ready(function(){
6767
/*******************************************************************************
6868
* QUnit setup
6969
*/
70-
QUnit.log(function(data) {
71-
if (window.console && window.console.log) {
72-
// window.console.log(data.result + " :: " + data.message);
73-
}
74-
});
7570

7671
QUnit.config.requireExpects = true;
7772

@@ -103,10 +98,38 @@ var th = new TestHelpers(),
10398
{title: "Sub Item 2", cmd: "sub2" }
10499
]}
105100
],
106-
$ = jQuery;
107-
101+
$ = jQuery,
102+
sauceLabsLog = [];
103+
104+
// SauceLabs integration
105+
QUnit.testStart(function (testDetails) {
106+
QUnit.log = function (details) {
107+
if (!details.result) {
108+
details.name = testDetails.name;
109+
sauceLabsLog.push(details);
110+
}
111+
};
112+
});
108113

114+
QUnit.done(function (testResults) {
115+
var tests = [],
116+
i, len, details;
117+
for (i = 0, len = sauceLabsLog.length; i < len; i++) {
118+
details = sauceLabsLog[i];
119+
tests.push({
120+
name: details.name,
121+
result: details.result,
122+
expected: details.expected,
123+
actual: details.actual,
124+
source: details.source
125+
});
126+
}
127+
testResults.tests = tests;
109128

129+
/*jshint camelcase:false*/
130+
window.global_test_results = testResults;
131+
/*jshint camelcase:true*/
132+
});
110133

111134
//---------------------------------------------------------------------------
112135

0 commit comments

Comments
 (0)