https://cypress.io logo
How to get all cypress steps to log files with cyp...
# i-need-help
a
I was wondering about how to write all steps (like in cypress app left side) to log file. I'd like to write a separate file for every test file.
a
@adamant-toddler-18579 Maybe something like this plugin: https://github.com/archfz/cypress-terminal-report
e
You could potentially take advantage of the
command:start
and
test:after:run
events and write your own steps in the
e2e.js
file. For each command that starts, store it to some variable array. Then after a test has finished write that array to any file in your desired format. Requires some manual setup but I've used these events for logging command performance metrics before.
3 Views