-
Notifications
You must be signed in to change notification settings - Fork 125
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] Tests fail on reportAllureCypressSpecMessages
task during screenshots copying
#1133
Comments
reportAllureCypressSpecMessages
taskreportAllureCypressSpecMessages
task during screenshots copying
Facing the same error. |
Try with this config on your cypress.config.js env: { |
@baev could you take a look at this issue and provide some feedback? Is it planned to fix this issue or is there any workaround? Currently this issue is a blocker for me in using allure-cypress in my project |
@M-Burzynski, could you please specify the versions of |
@baev Today I checked it on the newest versions and issue still exists: |
Thanks, we'll take a look shortly. |
Describe the bug
When using the
allure-cypress
with thecypress-plugin-snapshots
for visual regression tests, when a test fails on a screenshot comparison, then the after hook fails with an error:As
cypress-plugin-snapshots
stores visual regresion screenshots inside a foldere2e/spec_name
but theallure-cypress
plugin tries to copy all the screenshots taken during test run and assumes they all are saved insidescreenshots
folder, so it tries to copy screenshots from the path which is not correct.Is there any way to configure which screenshots should be copied and which not? Or any other way to avoid this problem and ignore the fail in after hook?
Currently the whole tests suite stops when this error occurs.
To Reproduce
Steps to reproduce the behavior:
cypress-plugin-snapshots
andallure-cypress
plugin in the repositoryExpected behavior
allure-cypress
plugin shouldn't try to copy attatchments from non existing paths or it should be possible to configure which attatchments should be copied to the report.Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: