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

Allow CLI options to override conf.js parameters #2391

@joshmgrant

Description

@joshmgrant

It appears that arguments used when running protractor from the command line do not override values in the conf.js file. For example, if I run the command

protractor --baseUrl='http://local.app' conf.js

with the conf.js file

module.export = {
    // some other params

     capabilities: {
        'browserName': (process.env.TEST_BROWSER_NAME || 'chrome'),
        'version': (process.env.TEST_BROWSER_VERSION || 'ANY')
    },

    baseUrl: 'http://test.app'
}

tests will execute using the baseUrl = 'http://test.app' in the conf.js instead of 'http://local.app'.
It could be that this is a specific issue to my setup, but it'd be helpful to allow the CLI to override parameters as needed in the conf.js file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions