How can I auto log cypress test name? #28717
Answered
by
michallbanas
dushkin
asked this question in
Questions and Help
-
I’d like to be able to tell cypress to log each test name. I know I can put inside each spec’s beforeEach() the following line:
But I don’t like the need to remember to add it to each beforeEach() hook implementation. Is there a nicer way to achieve this goal? |
Beta Was this translation helpful? Give feedback.
Answered by
michallbanas
Feb 20, 2024
Replies: 1 comment 1 reply
-
Hey hey @dushkin 👋🏼 You don't need to remember it because you can add it globally in beforeEach loop to
So this way it is added only once 🚀 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dushkin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey hey @dushkin 👋🏼 You don't need to remember it because you can add it globally in beforeEach loop to
support/command.js
file.So this way it is added only once 🚀