Skip to content

Commit

Permalink
Update screenshots-and-videos.md (#1469)
Browse files Browse the repository at this point in the history
* Update screenshots-and-videos.md

Add a note about how the `videoUploadOnPasses` option can be used to avoid processing and uploading videos in the case that all tests pass.

Partially addresses cypress-io/cypress#2217, cypress-io/cypress#2522

* Update screenshots-and-videos.md

Remove autoformatter-caused changes

* Update to clarify that videos process per spec file run

- '+' to 'and'


Co-authored-by: Jennifer Shehane <[email protected]>
  • Loading branch information
Ameobea and jennifer-shehane committed Mar 8, 2019
1 parent af75eb6 commit 33f45c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/guides/guides/screenshots-and-videos.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Videos are stored in the {% url `videosFolder` configuration#Videos %} which is

After `cypress run` completes, Cypress will automatically compress the video in order to save on file size. By default it compresses to a `32 CRF` but this is configurable with the {% url `videoCompression` configuration#Videos %} property.

By default, videos are processed and compressed after every spec file runs, successful or not. To change this behavior to only process videos in the case that tests fail, set the {% url `videoUploadOnPasses` configuration#Videos %} configuration option to `false`.

By default, Cypress clears any existing videos before a `cypress run`. If do not want to clear your videos folder before a run, you can set {% url `trashAssetsBeforeRuns` configuration#Videos %} to `false`.

# Now What?
Expand Down

0 comments on commit 33f45c1

Please sign in to comment.