Webdriverio: [wdio-cli]: Allow custom config name or path in install command

Created on 29 Nov 2019  路  1Comment  路  Source: webdriverio/webdriverio

Currently when trying to use wdio install and the config file is not named wdio.conf.js or is located in a different folder, the command would fail. This is happening because we're hardcoding the name

Possible solution

Allow user to pass the name or path of their configuration file to the command in case it's different from default:

$ wdio install service chromedriver --config="./myconf.js" 
# or
$ wdio install service chromedriver --config="./path/to/confi.file.js" 
good first pick help wanted wdio-cli

Most helpful comment

Allow user to pass the name or path of their configuration file to the command in case it's different from default:

Sounds good to me, let's ensure this parameter is only valid for the install command.

>All comments

Allow user to pass the name or path of their configuration file to the command in case it's different from default:

Sounds good to me, let's ensure this parameter is only valid for the install command.

Was this page helpful?
0 / 5 - 0 ratings