-
Notifications
You must be signed in to change notification settings - Fork 2
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
enhancing the logging #50
Comments
please tell me when to implement |
Yes. @TobiasHH before implementing let's think a unify way to do logging in all the commands with minimal breaking change. WhatI'm thinking there should be env variable by which we should control if we should log or not for all command instead of indiviual option. The second thing is if we enable logging then what all things do you think we should log ? |
Good question. https://docs.cypress.io/api/cypress-api/cypress-log
"WhatI'm thinking there should be env variable by which we should control if we should log or not for all command instead of indiviual option." I don't think you need an env variable? The last time I added the parameter only to hide the internal called command.
this is displaying mailpitGetEmailsByTo and mailpitSearchEmails in the command log also if only mailpitGetEmailsByTo is called.
Here you can see the log:false property so that the window command is not shown anymore when the setSessionStorage command is executed. The command log only displays setSessionStorage and not the internal window. The console log I use only seldom.
I would not log the start, limit, timeout parameter |
maybe this is an inspiration https://github.com/testing-library/cypress-testing-library/blob/main/src/index.js |
Actual the usage of the mailpit logs directly the internal commands of the custom commands.
Cypress gives the possibility to use custom logging for custom commands so that the log gets more readable.
The text was updated successfully, but these errors were encountered: