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

Cypress records videos even if videoUploadOnPasses is true or false #4345

Closed
BilalRahaoui opened this issue May 30, 2019 · 1 comment
Closed

Comments

@BilalRahaoui
Copy link

1/Open cypress.json
2/add new key/value couple : "videoUploadOnPasses" : false
3/run project using npm run cypress:run
4/Check cypress/videos folder
5/Videos are recorder whatever test pass or fail

@jennifer-shehane
Copy link
Member

The videoUploadOnPasses only controls the uploading of videos, not the recording

Whether Cypress will process, compress, and upload videos to the Dashboard even when all tests in a spec file are passing. This only applies when recording your runs to the Dashboard. Turn this off if you’d like to only upload the spec file’s video when there are failing tests.

https://on.cypress.io/configuration#Videos

If you want to turn off video recording altogether, pass video: false to your config.

If you want to only record videos on failure, then you're looking for this feature request: #2522

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants