Skip to content

Commit 1ed4c1f

Browse files
committed
cypress config file options
- Adding --ccf and --cypress-config-file option to cli
1 parent 1487a4e commit 1ed4c1f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

bin/helpers/constants.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ const cliMessages = {
5454
PARALLEL_DESC: "The maximum number of parallels to use to run your test suite",
5555
INFO: "Run your tests on BrowserStack.",
5656
DESC: "Path to BrowserStack config",
57+
CYPRESS_DESC: "Path to cypress config file",
5758
CONFIG_DEMAND: "config file is required",
59+
CYPRESS_CONFIG_DEMAND: "cypress config file is required",
5860
BUILD_NAME: "The build name you want to use to name your test runs"
5961
},
6062
COMMON: {

bin/runner.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,15 @@ var argv = yargs
136136
demand: true,
137137
demand: Constants.cliMessages.RUN.CONFIG_DEMAND
138138
},
139+
'ccf': {
140+
alias: 'cypress-config-file',
141+
describe: Constants.cliMessages.RUN.CYPRESS_DESC,
142+
default: 'cypress.json',
143+
type: 'string',
144+
nargs: 1,
145+
demand: true,
146+
demand: Constants.cliMessages.RUN.CYPRESS_CONFIG_DEMAND
147+
},
139148
'disable-usage-reporting': {
140149
default: undefined,
141150
description: Constants.cliMessages.COMMON.DISABLE_USAGE_REPORTING,

0 commit comments

Comments
 (0)