#10 Generate HTML Report In Cypress | MochAwesome Reporter
Vložit
- čas přidán 22. 08. 2024
- In this video, I will show you how to generate HTML report in cypress.
Cypress Plugin
github.com/Lir...
github.com/ada...
Cypress Playlist
• #1 What Is Cypress
JavaScript For Beginner
• How To Download And In...
Supported By TestRigor
Sign up today - testrigor.com/...
If you want to support this channel
rzp.io/l/qNCAp...
All Playlist
/ mukeshotwani
Connect with us:
Email - mukeshotwani@learn-automation.com
Linkedin- / mukesh-otwani-93631b99
Instagram- / mukeshotwaniofficial
Facebook Group- / 256655817858291
Facebook Page- / seleniumwebdrivermukesh
Blog- learn-automatio...
I was looking for this. Thank you Mukesh :) !!
Hi Sindhu I am glad it helped
Long live Mukesh.. blessing from a humble leaner .. !
this is amazing! thank you so much for this content of cypress! :)
Glad you enjoy it! Thank you.
very nice explanation mukesh,
but i have question can we catch snackbar by using cypress
Very useful. Thanks for the excellent work
Hi Mukesh, Thanks for the video.. Will this reporter display when all the folders inside the path cypress cypress/integration are executed at once?
I am getting a different html report for each spec file, is there a way to generate 1 html file at the end of the run? TIA!
Hi sir, really good explanation. I have done the same thing in mine, the table of stats showing pass and fail is coming for only pass scenarios and not showing for fail scenarios, can u pls suggest for this, why it can be. i am testing for one scenario only making it pass so table comes, if make it fail then table doest not show and report does not generate
Hi Garima, please add assertion to make test pass or fail because if we dont add assertions then test status will be always passed.
@@MukeshotwaniThank you for your reply. I had intentionally provided wrong locator value to fail the test case, if we run by opening cypress it is failing, but in headless mode the table is not getting generated on fail
@@garimakhandwe7133 Thats strange because whether you execute the test in headed mode or headless behavior should not change. Please share the exception trace or logs to debug it.
@@Mukeshotwani it is in my project one, company, cannot share. is it based on any node modules already downloaded or any settings that it is suppressed on failure scenarios
Mochawesome reports captures all events.
Thanks again for this informational video. Could you please do the same content on latest version of Cypress.
Excellent videos, thank you very much for sharing the knowledge, Mukesh, please do you have a video in which I implement cypress-mochawesome-reporter in cypress 10, I am trying to configure it following the video but it does not load the index.html
Hi Linda, Cypress 10 has different folder structure and configurations. Do you want video on How to migrate from Cypress 9 to Cypress 10?
@@Mukeshotwani Hello Mukesh, I created a new project implementing cypress 10 + Cucumber which works correctly for me but now I have to implement a reporter and mochawesome seemed interesting to me but the configuration does not work for me, I would appreciate your help.
many thanks!
You're welcome!
Mukesh, here module.exports = (on, config) => {
require('cypress-mochawesome-reporter/plugin')(on);
};
gives error as -
(parameter) config: any
'config' is declared but its value is never read.ts(6133)
Parameter 'config' implicitly has an 'any' type.ts(7006)
Hi I am follower of you for Selenium and Cypress. Can you please make a video of how to get the xml report similar to html and delete the old report on every run
I am using cypress-mochawesome-reporter version "cypress-mochawesome-reporter": "^3.5.1" , it doesn't add the screenshots in the html report file. It just takes screenshots and gets saved in a folder. How do I add the screenshots in the html report.
I see screenshots in the HTML report file only for the failed cases.
@@sindhusudhakaran1731 I am not able to see for failed tests as well, could you share your cypres and mocha awesome reporter version also if possible could you share what all report options you have set.
Thanks bro
Most welcome, I am glad it helped 🙂
Hi sir I can see only json file , no html report generated
Hi Vicky, you must have missed something which is causing this. Please check video again or visit this document github.com/LironEr/cypress-mochawesome-reporter
Very nice presentation. Thank you. I need some help. May I communicate by email with you?