Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple projectIDs for multiple environments #4028

Closed
praneetha-ck-robo opened this issue Apr 25, 2019 · 9 comments
Closed

Multiple projectIDs for multiple environments #4028

praneetha-ck-robo opened this issue Apr 25, 2019 · 9 comments
Labels
stage: wontfix Cypress does not regard this as an issue or will not implement this feature

Comments

@praneetha-ck-robo
Copy link

praneetha-ck-robo commented Apr 25, 2019

Current behavior:

projectId in cypress.json is not being overridden by development.json.

Desired behavior:

I would want to have different project ID's for different environments. Hence, I assumed https://on.cypress.io/configuration-api#Usage according to this, I would expect that the projectId in development.json would override the projectId in cypress.json.

Steps to reproduce: (app code and test code)

cypress run --record --key `<record-key>`
@jennifer-shehane
Copy link
Member

ProjectIds are meant to identify a single project, as the name indicates. ProjectIds are automatically generated per project and are read only. You cannot overwrite the projectId.

If you can, we'd like to know why you want a separate ProjectID per environment within the same project. We may be able to help you achieve the result you're looking for in another way.

@jennifer-shehane jennifer-shehane added the stage: wontfix Cypress does not regard this as an issue or will not implement this feature label Apr 26, 2019
@praneetha-ck-robo
Copy link
Author

For my local developmental purposes, I'd like to have a separate project where I can view my tests in the dashboard. I also have a projectID created for an organization and I do not want to pollute my dashboard created for the organization with tests that I run locally.

@praneetha-ck-robo
Copy link
Author

Hi @jennifer-shehane Is there any solution for my use-case?

@jennifer-shehane
Copy link
Member

No. There is not a way to do this currently with Cypress. I'd suggest looking into grouping as possibly a way to organize some of the run data. https://on.cypress.io/parallelization#Grouping-test-runs

We don't intend to support multiple projectIds per project, so we will be closing this issue.

@aheward
Copy link

aheward commented Jul 29, 2019

Grouping will be a workable solution as soon as you guys start beefing up the features and customizability of your dashboard UI offering. Until then, it's disappointing that we can't use multiple project IDs in the same codebase.

@bahmutov
Copy link
Contributor

I believe when this PR #3246 lands you will be able to override project ID and every other config setting as desired.

@jennifer-shehane
Copy link
Member

Also, this issue may be a relevant feature for you all looking here #2561

@borecz
Copy link

borecz commented Jan 6, 2021

Any updated on this?

We have a repo with test for mobile and desktop and we need to have them splitted in dashboard. It seems a pretty reasonable use case.

@bahmutov
Copy link
Contributor

bahmutov commented Jan 6, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: wontfix Cypress does not regard this as an issue or will not implement this feature
Projects
None yet
Development

No branches or pull requests

5 participants