forked from abhishekswain/jasmine2-protractor-utils
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): optional test description prefix based on capability's …
…name If this flag `addPrefixToTests` is set to true, a prefix will be added to every test description with the `name` value presented on the `capabilities` object defined on the protractor configs. Resolve add addPrefixToTests config (#72)
- Loading branch information
1 parent
49bd38c
commit 989f8e0
Showing
5 changed files
with
102 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
var env = require('../environment'); | ||
|
||
exports.config = { | ||
seleniumAddress: env.seleniumAddress, | ||
framework: 'jasmine2', | ||
plugins: [{ | ||
path: '../../../index.js', | ||
screenshotPath: '.tmp/addPrefixToTests', | ||
clearFoldersBeforeTest: false, | ||
addPrefixToTests: true | ||
}], | ||
multiCapabilities: [ | ||
{ | ||
'browserName': 'chrome', | ||
'name': 'L', | ||
'chromeOptions': { | ||
args: ['--window-size=1400,1200'] | ||
}, | ||
specs: ['../protractor/angularjs-homepage-test.js'], | ||
}, { | ||
'browserName': 'chrome', | ||
'name': 'M', | ||
'chromeOptions': { | ||
args: ['--window-size=800,1200'] | ||
}, | ||
specs: ['../protractor/angularjs-homepage-test.js'], | ||
} | ||
], | ||
onPrepare: function() { | ||
// returning the promise makes protractor wait for the reporter config before executing tests | ||
return global.browser.getProcessedConfig().then(function(config) { | ||
//it is ok to be empty | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters