Skip to content

How to run cypress.json file of different name using cypress_proj_dir key other than cypress.json file name #63

Closed
@kalpeshchilka

Description

@kalpeshchilka

Currently, I have different cypress.json files for each environment. E.g - cypress-qa.json and cypress-dev.json. How can we run a specific cypress-env.json file using "cypress_proj_dir": "./",.
I am running my tests locally by invoking these cypress-env.json files using the environment specific bash files, as per my build environment need.
Can we achieve the same using BrowserStack by mentioning specific cypress-env.json file name? Tried different combinations but it throws below mentioned error:
error: cypress.json file is not found at cypress_proj_dir path ./

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions