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

Open
jamesgeorge007 opened this issue Jun 22, 2019 · 2 comments

Comments

2 participants
@jamesgeorge007
Copy link
Contributor

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

This comment has been minimized.

Copy link
Member

commented Jun 24, 2019

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

@jamesgeorge007 jamesgeorge007 referenced a pull request that will close this issue Jun 24, 2019

Open

feat(chore): Include new info command #4542

@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

This comment has been minimized.

Copy link
Member

commented Jul 12, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.