Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
feat(sauceprovider): append spec filename to capabilities.name
Browse files Browse the repository at this point in the history
  • Loading branch information
hankduan committed Jun 4, 2014
1 parent 46a8ca5 commit 7299155
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/driverProviders/sauce.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ SauceDriverProvider.prototype.setupEnv = function() {
this.config_.capabilities.accessKey = this.config_.sauceKey;
this.config_.seleniumAddress = 'http://' + this.config_.sauceUser + ':' +
this.config_.sauceKey + '@ondemand.saucelabs.com:80/wd/hub';

// Append filename to capabilities.name so that it's easier to identify tests
if (this.config_.capabilities.name && this.config_.capabilities.shardTestFiles) {
this.config_.capabilities.name += (':' + this.config_.specs.toString().replace(/^.*[\\\/]/, ''));
}

util.puts('Using SauceLabs selenium server at ' +
this.config_.seleniumAddress.replace(/\/\/.+@/, '//'));
Expand Down

0 comments on commit 7299155

Please sign in to comment.