Cypress: Set video config to false by default

Created on 5 Nov 2018  路  4Comments  路  Source: cypress-io/cypress

Current behavior:

The first time I run Cypress, it spams my project with lots of directories and files I don't need nor want. Merely running Cypress should not produce anything. I wasted a lot of time searching the docs for ways to disable this behavior.

Desired behavior:

Cypress should only produce these files if I explicitly ask for it. For example, npm init cypress or cypress init.

The video option should default to false. You should not assume people want this.

Cypress should not automatically scaffold stuff into cypress/fixtures, cypress/plugins, cypress/support. I could not find a way to disable this (which is very surprising), so I ended up forcing these directories to exist in Git so Cypress wouldn't do the scaffolding (touch cypress/plugins/.keep).

Steps to reproduce:

Can be reproduced by just running cypress run in a project.

Versions

Cypress 3.1.1

proposal 馃挕 video 馃摴 breaking change unexpected behavior

Most helpful comment

Understand the concerns - it's probably time we changed this.

We can do a proposal for cypress init, and we've previously talked for awhile about updating the initial GUI scaffolding experience to be opt-in only.

All 4 comments

Is this what you'd like to see? #619

Yes, and also changing the default of the video option.

Understand the concerns - it's probably time we changed this.

We can do a proposal for cypress init, and we've previously talked for awhile about updating the initial GUI scaffolding experience to be opt-in only.

Issue for cypress init to prevent scaffolding everything https://github.com/cypress-io/cypress/issues/619

Was this page helpful?
0 / 5 - 0 ratings