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

Having a dedicated command to show up local environment information 'cypress info' #4540

Closed
jamesgeorge007 opened this issue Jun 22, 2019 · 4 comments · Fixed by #6372
Closed
Assignees
Labels
cli good first issue Good for newcomers type: enhancement Requested enhancement of existing feature

Comments

@jamesgeorge007
Copy link
Contributor

jamesgeorge007 commented Jun 22, 2019

Feature Request

Most CLI tools these days are shipped with a dedicated info command which shows up local environment information. Also, the present issue template includes a section which expects to have information regarding the local environment.

With this all the user has to do is just copy and paste the information as shown by cypress info within the respective section.

@jennifer-shehane jennifer-shehane added cli difficulty: 1️⃣ stage: ready for work The issue is reproducible and in scope type: enhancement Requested enhancement of existing feature labels Jun 24, 2019
@jennifer-shehane
Copy link
Member

The code for this can be found here (for example this is the cypress help command) for anyone that would like to contribute this cypress info command. https://github.com/cypress-io/cypress/blob/develop/cli/lib/cli.js#L156

I imagine it would print:

  • Cypress version
  • OS platform info

Maybe some environment variables from the OS we care about? like...

  • HTTP_PROXY
  • NO_PROXY
  • CYPRESS_INSTALL_BINARY

@cypress-bot cypress-bot bot added stage: work in progress and removed stage: ready for work The issue is reproducible and in scope labels Jun 24, 2019
@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review and removed stage: work in progress labels Jul 3, 2019
@jennifer-shehane jennifer-shehane changed the title Having a dedicated command to show up local environment information Having a dedicated command to show up local environment information 'cypress info' Jul 12, 2019
@jennifer-shehane
Copy link
Member

From this previous issue, there was a recommendation on the structure of printing browser information we've found that I liked. Pasting here from @bahmutov previous comment.

It cold also perhaps link to our debugging guide on how to get browsers to be detected that are not currently. https://on.cypress.io/debugging#Launching-browsers

Detected 3 browsers

Browser info
-------------------------------------------------
name      displayName  majorVersion  version     
--------  -----------  ------------  ------------
chrome    Chrome       62            62.0.3202.94
chromium  Chromium     60            60.0.3110.0 
canary    Canary       65            65.0.3287.0 

Browser paths
------------------------------------------------------------------------------------
name      path                                                                      
--------  --------------------------------------------------------------------------
chrome    /Applications/Google Chrome.app/Contents/MacOS/Google Chrome              
chromium  /Applications/Chromium.app/Contents/MacOS/Chromium                        
canary    /Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary

@jennifer-shehane jennifer-shehane added the good first issue Good for newcomers label Jul 12, 2019
@cypress-bot cypress-bot bot added stage: ready for work The issue is reproducible and in scope and removed stage: needs review The PR code is done & tested, needs review labels Dec 19, 2019
@cypress-bot cypress-bot bot added stage: work in progress stage: needs review The PR code is done & tested, needs review and removed stage: ready for work The issue is reproducible and in scope stage: work in progress stage: needs review The PR code is done & tested, needs review labels Feb 7, 2020
@cypress-bot cypress-bot bot added stage: work in progress stage: needs review The PR code is done & tested, needs review and removed stage: needs review The PR code is done & tested, needs review stage: work in progress labels Feb 11, 2020
@bahmutov bahmutov self-assigned this Feb 20, 2020
@cypress-bot cypress-bot bot added stage: pending release and removed stage: needs review The PR code is done & tested, needs review labels Feb 20, 2020
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Feb 20, 2020

The code for this is done in cypress-io/cypress#6372, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Feb 28, 2020

Released in 4.1.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v4.1.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Feb 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cli good first issue Good for newcomers type: enhancement Requested enhancement of existing feature
Projects
None yet
3 participants