DEV Community

Discussion on: Using Mochawesome Reporter with Cypress

Collapse
 
bushraalam profile image
Bushra Alam

Hi
Well.. that's the advantage of using pre and post scripts.. they are called automatically before and after the main script. So when we run the script 'test'.. the script 'pretest' would automatically run before it and the script 'posttest' would automatically run after script 'test' has finished execution.
I have also explained that in the video that is embedded in the post.