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

Videos getting generated for all the test cases whether pass or fail with "videoUploadOnPasses": false #2382

Closed
Sjain01 opened this issue Aug 22, 2018 · 9 comments

Comments

@Sjain01
Copy link

Sjain01 commented Aug 22, 2018

Current behavior:

I am running bunch of test scenarios with option "videoUploadOnPasses": false and for all those scenarios whether pass or fail , video recordings are getting generated.

Desired behavior:

For example - in attached snapshot - forgot password has successfully executed but in next snapshot you can see the video is generated even though it has passed which in this case the video should not be generated
screen shot 2018-08-22 at 14 52 14

screen shot 2018-08-22 at 14 53 12

Steps to reproduce:

Set "videoUploadOnPasses": false and execute any test. Irrespective whether it fails or pass , video recordings are done by default for all.

Versions

Cypress: 3.1.0 │
Browser: Electron 59 (headless)

@bahmutov
Copy link
Contributor

so the video is generated, but not uploaded to the Cypress dashboard. Do you think you want to just delete video file / not encode it on passing spec? Basically we have to record the video in case the spec fails...

@Sjain01
Copy link
Author

Sjain01 commented Aug 22, 2018

@bahmutov - I can delete the video that is not an issue. But my issue here is as the cypress docs says setting "videoUploadOnPasses": false should only generate videos when the test case fails whereas in above case video is getting generated even if the test is passing.

@Sjain01 Sjain01 changed the title Videos getting generated for all the test cases whether pass or fail Videos getting generated for all the test cases whether pass or fail with "videoUploadOnPasses": false Aug 22, 2018
@AlbertQM
Copy link

As mentioned by @bahmutov, videoUploadOnPasses != videoRecordOnPasses.

Although it'd be nice having Cypress deleting the video in case the spec passes.

In my case, I didn't need videos at all so I solved the problem by simply passing this flag.

config: {
        video:false
      }

@bahmutov
Copy link
Contributor

@Sjain01 where do you see this in the docs, that seems wrong

https://docs.cypress.io/guides/references/configuration.html#Videos

screen shot 2018-08-22 at 9 35 23 am

@pmomot
Copy link

pmomot commented Aug 22, 2018

So now as I see, there is no option to have videos of only failing specs, is it correct?

@Sjain01
Copy link
Author

Sjain01 commented Aug 22, 2018

@AlbertQM - Thank you for your suggestion but in my case I need videos only if the tests fails which I think is not possible to accomplish in current situation.

@bahmutov - please correct if I understood it wrong.

@bahmutov
Copy link
Contributor

@pmomot yes, there is no option to only keep videos from failing tests
@Sjain01 I don't understand what is unclear about it - this talks about uploading to the dashboard, there is nothing about saving videos. How would you change the above description of videoUploadOnPasses?

@Sjain01
Copy link
Author

Sjain01 commented Aug 22, 2018

@bahmutov - My bad, I mixed up two things , thank you for your time and explanation.

@seyfer
Copy link

seyfer commented Dec 23, 2019

I think this one can be closed in favor of #2522 ?

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

No branches or pull requests

6 participants