Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Added support for multiCapabilities object and splitTestsBetweenCapabilities boolean #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ Supported arguments are below.
* sauceUser `string`: Username for a SauceLabs account
* sauceKey `string`: Access Key for a SauceLabs account
* capabilities `object`: Capabilities object to be passed to the test, e.g. browserName, platform and version
* multiCapabilities `object`: multiCapabilities object to be passed to the test. Protractor will run tests in parallel against each set of capabilities.
* splitTestsBetweenCapabilities `boolean`: If true, will split different test files over different instances of a browser resulting in a faster test throughput
* framework `string`: Limited support for using mocha as the test framework instead of jasmine.
* cucumberOpts `object`: Cucumber framework options object to be passed to the test, e.g. require, tags and format

Expand Down
4 changes: 2 additions & 2 deletions tasks/protractor_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ module.exports = function(grunt) {
var keepAlive = opts['keepAlive'];
var strArgs = ["seleniumAddress", "seleniumServerJar", "seleniumPort", "baseUrl", "rootElement", "browser", "chromeDriver", "chromeOnly", "sauceUser", "sauceKey", "framework"];
var listArgs = ["specs"];
var boolArgs = ["includeStackTrace", "verbose"];
var objectArgs = ["params", "capabilities", "cucumberOpts"];
var boolArgs = ["includeStackTrace", "verbose", "splitTestsBetweenCapabilities"];
var objectArgs = ["params", "capabilities", "cucumberOpts", "multiCapabilities"];

var args = [protractorBinPath, opts.configFile];
if (opts.noColor){
Expand Down