JS for Testers | Part 9: JS Test Framework (Mocha) & Assertion Library (Chai)
ฝัง
- เผยแพร่เมื่อ 27 ก.ค. 2024
- ▬▬▬▬▬▬ P L A Y W R I G H T F U L L C O U R S E ▬▬▬▬▬▬
Udemy ► bit.ly/38B9Enu
Discount Code ► CBE4DEE43B40DE3991EE
▬▬▬▬▬▬ In this Video ▶️ ▬▬▬▬▬▬
Learn the best of breed JavaScript test framework: Mocha and Assertion Library: Chai
▬▬▬▬▬▬ Timestamps ⏰ ▬▬▬▬▬▬
00:00 - Intro
03:00 - Mocha
05:13 - Chai
10:04 - Inclusive tests (.skip)
10:53 - Exclusive tests (.only)
11:46 - Mocha Hooks
13:22 - Mocha Reporters
▬▬▬▬▬▬ Useful Links 🛠 ▬▬▬▬▬▬
Chai BDD style assertions ► www.chaijs.com/api/bdd/
▬▬▬▬▬▬ TH-cam Playlists 🚀 ▬▬▬▬▬▬
Cypress ► bit.ly/3peC37y
Playwright ► bit.ly/3qfmduZ
JavaScript For Testers ► bit.ly/2Z9M0st
Tester's Toolkit ► bit.ly/3adoxNx
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
Don't forget to subscribe ► bit.ly/3aZkYcK
DEV ► dev.to/bushraalam
GITHUB ► github.com/bushralam
TWITTER ► / imbushraalam
LINKEDIN ► / bushralam
#JSforTesters #JavaScript
Appreciate your hardwork in explaining the great content in simple words 👍 Thanks a lot for sharing 🙏
Awesome Explanation. Much Appreciated !!!
Very well explained in a simple manner. Thank you.
Absolutely brilliant explanation ...! 👏👏👏
You are awesome. Thanks a lot.
Nice series. Subscribed to channel
these videos are great
awsome context
great
only one is missing here, as I think, is adding mochawesome at the very end of this instruction. why not! :)
anyway, big thanks for the tutorial.
It would be great ,If you prepare more videos on Cypress & JS , Because your explanation was good.Appreciated content too.
Hi Suresh :)
Thank you.. and I have just added a new video 'Cypress - Page Object Model': th-cam.com/video/5ODb5eQTB44/w-d-xo.html
I will be adding more to JS playlist as well.
6:14 Require
Very well explained. Can you also make video on promises ? Thanks!
Yes, soon
@@QACamp When?
Thanks for tutorial, what if I add a function library in test folder (like test/funcLib.js, this holds few common functions but no test), will that get executed too?
when i do npx run I get an error
While running mocha no test files found
Sister, everyone is telling how to run test cases from terminal. Why you are not explaining how to run test cases from html page with a click of a button? As you know we use this mocha to automation also. If we develop any automation and give it to any end user, how can he run it from the terminal? Please understand why you people are not telling how to run it from html page with click of a button??