Skip to content
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

Cucumber & messages json not generating when running from Cypress UI #776

Closed
3 tasks done
kiran-epic opened this issue Jul 25, 2022 · 4 comments
Closed
3 tasks done

Comments

@kiran-epic
Copy link

kiran-epic commented Jul 25, 2022

Current behavior

Even after setting the required configuration as per the Docs, not able to get the json & messages generated when cypress is launched using npx cypress open & an feature is executed

Desired behavior

Cucumber json should be generated the same way they get generated when using the npx cypress run command

Test code to reproduce

https://github.com/kiran-epic/CypressCucumber_NoJSON

Versions

  • Cypress version: 10.3
  • Preprocessor version:11.5.1
  • Node version:16.16.0

Checklist

  • I've read the FAQ.
  • I've read Instructions for logging issues.
  • I'm not using cypress-cucumber-preprocessor@4.3.1 (package name has changed and it is no longer the most recent version, see #689).
@badeball
Copy link
Owner

I can't reproduce your issue, they reports are generated as expected.

@kiran-epic
Copy link
Author

@badeball That's super strange, where are the logs getting generated for you? Also are you running from console or using the cypress runner (npx cypress open & then selecting a feature) ?

@kiran-epic
Copy link
Author

@badeball I just ran using the npx cypress run command & was able to see the logs. So the issue is only when you run using the cypress UI runner (npx cypress open)

@kiran-epic kiran-epic changed the title Cucumber & messages json not generating Cucumber & messages json not generating when running from Cypress UI Jul 25, 2022
@badeball
Copy link
Owner

JSON reports aren't typically generated in open-mode. They rely on some events that aren't available in open-mode, at least not without experimentalInteractiveRunEvents: true. However, it seems like even this experimental flag broke some time ago, ref. cypress-io/cypress#18955.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants