Get name and result of each test #15047
-
I am looking for an option to get the name and the result (fail/pass) of each test to save this to an external file. How can I get this information easily? Currently, I can get only the title within the
however, I am not able to get the result there. It would be ideal to have this option from Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Take a look at https://glebbahmutov.com/blog/cypress-tips-and-tricks/#use-test-names-when-creating-data and https://glebbahmutov.com/blog/cypress-tips-and-tricks/#get-test-status You will find all this information from the afterEach(function () {
console.log(this)
debugger
}) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Take a look at the After Spec Run API. |
Beta Was this translation helpful? Give feedback.
-
Is there really no way to access the current test context when using arrow functions? |
Beta Was this translation helpful? Give feedback.
Take a look at the After Spec Run API.