Retrieval of Cypress screenshots
After the #263 (closed), it has been decided that we will implement the attachment of the Cypress screenshots (hence their upload in the test referential, Squash TM) by using the --config
command line parameter.
We will generate a unique directory name.
This directory name must be available for a possible hook: it should be accessible via an environment variable.
This directory name will be provided on the command line using something like cypress run … --config screenshotsFolder=<directoy> …
(see https://docs.cypress.io/guides/guides/command-line#cypress-run-config-lt-config-gt).
The screenshots should be retrieved as a single tar file of the content of the directory (not the directory itself since the directory name is meaningless for the user), Cypress may generate a hierarchy of folders and files, we keep this hierarchy in the tar file.