grunt-saucelabs
Advanced tools
Comparing version 8.6.0 to 8.6.1
'use strict'; | ||
var packageJSON = require('./package.json'); | ||
module.exports = function (grunt) { | ||
@@ -33,5 +35,6 @@ | ||
baseSaucelabsTaskOptions: { | ||
build: process.env.TRAVIS_JOB_ID, | ||
build: process.env.TRAVIS_JOB_ID || 'dev-'+process.env.USER+':'+Date.now(), | ||
tags: ['v'+packageJSON.version, 'grunt-saucelabs'], | ||
browsers: [ | ||
['XP', 'chrome', ''] | ||
['Windows 7', 'chrome', ''] | ||
], | ||
@@ -38,0 +41,0 @@ tunneled: false, |
{ | ||
"name": "grunt-saucelabs", | ||
"description": "Grunt task running tests using Sauce Labs. Supports QUnit, Jasmine, Mocha and YUI tests", | ||
"version": "8.6.0", | ||
"version": "8.6.1", | ||
"homepage": "https://github.com/axemclion/grunt-saucelabs", | ||
@@ -33,6 +33,6 @@ "author": { | ||
"colors": "~1.0.0", | ||
"lodash": "~3.3.0", | ||
"q": "~1.1.2", | ||
"lodash": "~3.7.0", | ||
"q": "~1.3.0", | ||
"requestretry": "~1.2.2", | ||
"sauce-tunnel": "~2.2.2", | ||
"sauce-tunnel": "~2.2.3", | ||
"saucelabs": "~0.1.1" | ||
@@ -39,0 +39,0 @@ }, |
@@ -87,2 +87,3 @@ grunt-saucelabs | ||
* __maxRetries__: Specifies how many times the timed out tests should be retried (default: 0). _Optional_ | ||
* __public__: The [job visibility level](https://docs.saucelabs.com/reference/test-configuration/#job-visibility). Defaults to 'team'. _Optional_ | ||
@@ -266,2 +267,10 @@ A typical `test` task running from Grunt could look like `grunt.registerTask('test', ['server', 'qunit', 'saucelabs-qunit']);` This starts a server and then runs the QUnit tests first on PhantomJS and then using the Sauce Labs browsers. | ||
--------- | ||
####8.6.1#### | ||
* added `public` parameter, so tests can be made Public on Sauce Labs | ||
* when retrying a test, browser name and test url are output to stdout | ||
* default build number added when running tests locally | ||
* update Sauce Connect to v4.3.7\ | ||
* updated npm dependencies | ||
* fixed a bug where YUI or Qunit tests were detected as Passed, when they actually failed | ||
####8.6.0#### | ||
@@ -268,0 +277,0 @@ * check job completion a maximum number of times |
@@ -17,3 +17,3 @@ 'use strict'; | ||
qunit: function (result) { | ||
return result.passed === result.total; | ||
return result.passed === result.total && result.total !== undefined; | ||
}, | ||
@@ -24,3 +24,3 @@ mocha: function (result) { | ||
'YUI Test': function (result) { | ||
return result.passed === result.total; | ||
return result.passed === result.total && result.total !== undefined; | ||
}, | ||
@@ -51,2 +51,3 @@ custom: function (result) { | ||
this.build = runner.build; | ||
this.public = browser.public || runner.public || "team"; | ||
this.tags = browser.tags || runner.tags; | ||
@@ -76,2 +77,3 @@ this.testName = browser.name || runner.testName; | ||
build: this.build, | ||
public: this.public, | ||
tags: this.tags, | ||
@@ -124,3 +126,3 @@ name: this.testName | ||
// (One way to trigger this is to set a big (~100KB) test result.) | ||
if (result.result === null) { | ||
if (!result.result) { | ||
result.passed = false; | ||
@@ -127,0 +129,0 @@ } else { |
@@ -32,2 +32,3 @@ 'use strict'; | ||
this.build = properties.build; | ||
this.public = properties.public; | ||
this.tags = properties.tags; | ||
@@ -124,3 +125,5 @@ this.sauceConfig = properties.sauceConfig; | ||
me.reportProgress({ | ||
type: 'retrying' | ||
type: 'retrying', | ||
url: url, | ||
browser: browser | ||
}); | ||
@@ -127,0 +130,0 @@ |
@@ -46,3 +46,3 @@ 'use strict'; | ||
case 'retrying': | ||
grunt.log.writeln('Timed out, retrying'); | ||
grunt.log.writeln('Timed out, retrying URL %s on browser %s', notification.url, JSON.stringify(notification.browser)); | ||
break; | ||
@@ -49,0 +49,0 @@ default: |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
1023661
31543
350
34
+ Addedlodash@3.7.0(transitive)
+ Addedq@1.3.0(transitive)
- Removedlodash@3.3.1(transitive)
- Removedq@1.1.2(transitive)
Updatedlodash@~3.7.0
Updatedq@~1.3.0
Updatedsauce-tunnel@~2.2.3