From 8185a062f6b55418c6526c48ea9b07cd4d0dee4f Mon Sep 17 00:00:00 2001 From: Casey Primozic Date: Thu, 7 Mar 2019 13:10:57 -0800 Subject: [PATCH 1/3] 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 https://github.com/cypress-io/cypress/issues/2217, https://github.com/cypress-io/cypress/issues/2522 --- source/guides/guides/screenshots-and-videos.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/guides/guides/screenshots-and-videos.md b/source/guides/guides/screenshots-and-videos.md index f1b4dd3fb5..ec959c51e6 100644 --- a/source/guides/guides/screenshots-and-videos.md +++ b/source/guides/guides/screenshots-and-videos.md @@ -3,13 +3,14 @@ title: Screenshots and Videos --- {% note info %} + # {% fa fa-graduation-cap %} What you'll learn - How Cypress captures screenshots of test failures automatically - How to manually capture your own screenshot - How Cypress can record a video of the entire run - Some options of what to do with screenshot and video artifacts -{% endnote %} + {% endnote %} # Screenshots @@ -35,6 +36,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 + compressed after every run, 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? From e3c48cce39ecf38b7b42a3aac4280e4276034dba Mon Sep 17 00:00:00 2001 From: Casey Primozic Date: Thu, 7 Mar 2019 13:24:58 -0800 Subject: [PATCH 2/3] Update screenshots-and-videos.md Remove autoformatter-caused changes --- source/guides/guides/screenshots-and-videos.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/guides/guides/screenshots-and-videos.md b/source/guides/guides/screenshots-and-videos.md index ec959c51e6..5828f6973a 100644 --- a/source/guides/guides/screenshots-and-videos.md +++ b/source/guides/guides/screenshots-and-videos.md @@ -3,14 +3,13 @@ title: Screenshots and Videos --- {% note info %} - # {% fa fa-graduation-cap %} What you'll learn - How Cypress captures screenshots of test failures automatically - How to manually capture your own screenshot - How Cypress can record a video of the entire run - Some options of what to do with screenshot and video artifacts - {% endnote %} +{% endnote %} # Screenshots From cec49fe63979a5fbfc2c0d2e29a1f4233e77e851 Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Fri, 8 Mar 2019 13:45:46 +0630 Subject: [PATCH 3/3] Update to clarify that videos process per spec file run - '+' to 'and' --- source/guides/guides/screenshots-and-videos.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/guides/guides/screenshots-and-videos.md b/source/guides/guides/screenshots-and-videos.md index 5828f6973a..cc63a25f27 100644 --- a/source/guides/guides/screenshots-and-videos.md +++ b/source/guides/guides/screenshots-and-videos.md @@ -35,7 +35,7 @@ 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 + compressed after every run, 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, 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`.