-
Notifications
You must be signed in to change notification settings - Fork 39
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
Log specs in separate files doesn't work #124
Comments
Hello. I have tried to replicate the issue on this branch https://github.com/archfz/cypress-terminal-report-demo/pull/2/files but could not reproduce. I need more information. That undefined means that the plugin somehow cannot determine the spec name. But I am really unsure how that is possible. |
Thanks for attempt. Do have any ideas what the additional information can help to detect problem?
|
Unfortunately not really. You can fork the branch i posted above and try to reproduce on that. Or you could also debug this yourself in your own project, if you know how to use a debugger. |
I'm having the same problem. I inserted some
Notice that there's no |
Can you try logging before this line
These logs would appear only in browser console while in gui mode, as its on support side. |
Both
I've tried this with My config looks like this: (plugins)
(support)
|
Well. That object is not controlled by us. That is part of mocha and or cypress. So I am really not sure why those props are not set. You could attempt to update cypress, see if it fixes, maybe mocha if you have it installed. Other than that you could try to find another place to take that information from and put a PR. |
Thanks, that's good information. I know we're not current on cypress, and I'm not sure about mocha. I'll see what I can figure out. Unfortunately, my team is one of many sharing common infrastructure, so even if I do discover that we need to upgrade one or both of them, it's going to be a hassle. sigh. |
Found a fallback. Basically we can use the |
Released in 3.4.1. Please test and see if it works. |
Success! Thanks very much! |
Hi. I have a problem with plugin setup to write logs into separate file.
My configuration. Version of packages:
Example name and path of spec test
cypress/tests/signin.spec.ts
As result i see file into cypress folder
undefined.json
with contentWhat am I doing wrong?
The text was updated successfully, but these errors were encountered: