Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-saucelabs

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-saucelabs - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

10

package.json
{
"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);
}
};
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc