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

Commit 7299155

Browse files
committed
feat(sauceprovider): append spec filename to capabilities.name
1 parent 46a8ca5 commit 7299155

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/driverProviders/sauce.js

+5
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ SauceDriverProvider.prototype.setupEnv = function() {
5757
this.config_.capabilities.accessKey = this.config_.sauceKey;
5858
this.config_.seleniumAddress = 'http://' + this.config_.sauceUser + ':' +
5959
this.config_.sauceKey + '@ondemand.saucelabs.com:80/wd/hub';
60+
61+
// Append filename to capabilities.name so that it's easier to identify tests
62+
if (this.config_.capabilities.name && this.config_.capabilities.shardTestFiles) {
63+
this.config_.capabilities.name += (':' + this.config_.specs.toString().replace(/^.*[\\\/]/, ''));
64+
}
6065

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

0 commit comments

Comments
 (0)