-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Screenshots are not added to the Cucumber JSON #705
Comments
You have to provide me with a minimal example that let's me reproduce the behavior. |
@badeball Sorry for the belated answer... Now, I've created a small example from our big project but reduced it, but not everywhere. So, please don't worry about it. This is the repo: https://github.com/GRmeB/cypress-cucumber-preprocessor-example You can find two Cucumber testcases, the first one should pass and the second one should fail. For the failed testcase no created screenshot will be attached to the cucumber.json file. |
This preprocessor will attach a handler on As explained by Chris (cypress-io/cypress#6648 (comment)), this might be considered bad behavior from the preprocessor and we should expose a method which you can call yourself instead (when needed). Do you need a handler for |
Current behavior
With the new plugin version 9.1.3 the screenshots are not added to the Cucumber JSON if a test will fail. Of course the
screenshotOnRunFailure
is set totrue
.The screenshots are correctly generated and located under
cypress/screenshots/
, as for me e.g. ascypress/screenshots/features/landingPage.feature/Landing Page -- Check landing page (example #1) (failed).png
.Desired behavior
If a screenshot is generated it should attached also to the Cucumber JSON report correctly.
Test code to reproduce
The generated Cucumber JSON looks like this at the end:
Versions
The text was updated successfully, but these errors were encountered: