grunt-saucelabs
Advanced tools
Comparing version 5.1.0 to 5.1.1
{ | ||
"name": "grunt-saucelabs", | ||
"description": "Grunt task running tests using Sauce Labs. Supports QUnit, Jasmine, Mocha and YUI tests", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"homepage": "https://github.com/axemclion/grunt-saucelabs", | ||
@@ -32,3 +32,3 @@ "author": { | ||
"dependencies": { | ||
"request": "~2.33.0", | ||
"request": "~2.34.0", | ||
"q": "~1.0.0", | ||
@@ -44,5 +44,5 @@ "saucelabs": "~0.1.1", | ||
"devDependencies": { | ||
"grunt-contrib-jshint": "~0.8.0", | ||
"grunt-contrib-connect": "~0.6.0", | ||
"grunt-contrib-watch": "~0.5.3", | ||
"grunt-contrib-jshint": "~0.9.2", | ||
"grunt-contrib-connect": "~0.7.1", | ||
"grunt-contrib-watch": "~0.6.1", | ||
"publish": "~0.3.2" | ||
@@ -49,0 +49,0 @@ }, |
@@ -124,5 +124,8 @@ grunt-saucelabs | ||
var testName; | ||
QUnit.done = function (test_results) { | ||
var tests = log.map(function(details){ | ||
return { | ||
QUnit.done(function (test_results) { | ||
var tests = []; | ||
for(var i = 0, len = log.length; i < len; i++) { | ||
var details = log[i]; | ||
tests.push({ | ||
name: details.name, | ||
@@ -133,10 +136,8 @@ result: details.result, | ||
source: details.source | ||
} | ||
}); | ||
}); | ||
} | ||
test_results.tests = tests; | ||
// delaying results a bit cause in real-world | ||
// scenario you won't get them immediately | ||
setTimeout(function () { window.global_test_results = test_results; }, 2000); | ||
}; | ||
window.global_test_results = test_results; | ||
}); | ||
QUnit.testStart(function(testDetails){ | ||
@@ -148,3 +149,3 @@ QUnit.log = function(details){ | ||
} | ||
} | ||
}; | ||
}); | ||
@@ -215,4 +216,9 @@ ``` | ||
--------- | ||
####5.1.1#### | ||
* Qunit reporting code made ecma3 compatible | ||
* Qunit reporting code doesn't clober the `.done()` callback | ||
* Updated dependencies | ||
####5.1.0#### | ||
* Added `custom` framework | ||
* Updated the test reporting on example pages to provide details when tests fail |
@@ -814,26 +814,25 @@ function getPreviousTests( rTestName, rModuleName ) { | ||
var testName; | ||
QUnit.done = function (test_results) { | ||
var tests = log.map(function(details){ | ||
return { | ||
name: details.name, | ||
result: details.result, | ||
expected: details.expected, | ||
actual: details.actual, | ||
source: details.source | ||
} | ||
}); | ||
test_results.tests = tests; | ||
QUnit.done(function (test_results) { | ||
var tests = []; | ||
for(var i = 0, len = log.length; i < len; i++) { | ||
var details = log[i]; | ||
tests.push({ | ||
name: details.name, | ||
result: details.result, | ||
expected: details.expected, | ||
actual: details.actual, | ||
source: details.source | ||
}); | ||
} | ||
test_results.tests = tests; | ||
// delaying results a bit cause in real-world | ||
// scenario you won't get them immediately | ||
setTimeout(function () { window.global_test_results = test_results; }, 2000); | ||
}; | ||
window.global_test_results = test_results; | ||
}); | ||
QUnit.testStart(function(testDetails){ | ||
QUnit.log = function(details){ | ||
if (!details.result) { | ||
details.name = testDetails.name; | ||
log.push(details); | ||
} | ||
} | ||
QUnit.log = function(details){ | ||
if (!details.result) { | ||
details.name = testDetails.name; | ||
log.push(details); | ||
} | ||
}; | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
221
607981
+ Addedrequest@2.34.0(transitive)
- Removedrequest@2.33.0(transitive)
Updatedrequest@~2.34.0