Absolutely the best informative, concise, and well structure video on Unit Tests that I have found in KZbin. I will recommend this video to ensure that everyone has a foundational understanding of Units tests why, what, and how !
@Cognitive-Programmer3 жыл бұрын
Thanks you so much for your appreciation and kind words..thanks again 🙏🙏🙏
@joaomatos11443 жыл бұрын
2021: One of the best explanations about Unit Tests. Just Subbed!
@Cognitive-Programmer3 жыл бұрын
Thanks a lot for watching my video and thanks for your comment 🙏🙏🙏
@bonnymunga29692 ай бұрын
Never have I understood testing fundamentally like the way I have now. Thank you, sir; great explanation!
@Cognitive-Programmer2 ай бұрын
Thank you so much for your comment and kind words.. Thanks a lot 🙏
@Elliria_home2 жыл бұрын
You're an absolute master at teaching. I thoroughly enjoyed this. Your explanations are very clear and easy to understand. Thank you so very much for doing this.
@Cognitive-Programmer2 жыл бұрын
Thank you so much for your kind words 🙏
@handover0072 жыл бұрын
after a very long time I have seen such a video . Hats off.
@Cognitive-Programmer2 жыл бұрын
Thank you so much for your comment 🙏
@meenatural4502 Жыл бұрын
Very well structured, informative, very talented teacher. Thank you!
@Cognitive-Programmer Жыл бұрын
Thank you so much for your comment 🙏
@Tanzeel4313 жыл бұрын
I clicked on the video link, saw your face and immediately hit the like button. I know already this video is going to be a good learning session.
@Cognitive-Programmer3 жыл бұрын
Thanks a lot for your kind words 🙏🙏🙏
@jamesang8735 Жыл бұрын
This is definitely the best video for unit test. Thank you!
@Cognitive-Programmer Жыл бұрын
Thanks a lot for your comment 🙏
@dassyareg7587 Жыл бұрын
Superb delivery. Absolutely amazing teaching.
@Cognitive-Programmer Жыл бұрын
Thanks for your kind words 🙏
@oneblackpanda Жыл бұрын
Thank you very much sir for this clear explanation, you have helped me understand unit testing - now can easily translate to my language of choice...
@Cognitive-Programmer Жыл бұрын
Thank you so much for your kind comment 🙏
@KO-vz5rd3 жыл бұрын
Thank you so much! So much confusion has been out there about mock vs. stub, and you clarify them beautifully...!
@Cognitive-Programmer3 жыл бұрын
Thanks for your comment 🙏🙏🙏
@sagejames36893 жыл бұрын
Very helpful and well-spoken. Exactly what I was looking for. Thank you!
@Cognitive-Programmer3 жыл бұрын
Thanks for your comment....if you like my contents.. may I please request you to share the same with friends and family ..Thanks 🙏🙏🙏
@almasfizashaikh61592 жыл бұрын
Such a well structured video, especially for someone new to the concept! Thank you :)
@Cognitive-Programmer2 жыл бұрын
Thank you so much for your comment 🙏
@harshaliyanachchi56383 жыл бұрын
Best video I found about unit test. Thank you.
@Cognitive-Programmer3 жыл бұрын
Thanks a lot for your kind words 🙏🙏🙏
@krishnaverma77443 жыл бұрын
Wow.... Perfect slides... Perfect explanation... Thanks for sharing your knowledge...
@Cognitive-Programmer3 жыл бұрын
Thanks a lot for your kind words 🙏🙏🙏
@sasukesarutobi38624 жыл бұрын
Just a quick question about the assertion at 8:00 - would it be better not trying to replicate a function's behaviour in the test, as that can make it fragile to changes in the function? Would it be better to instead assert with the function's output and a known correct value? So in the example above, it would be ASSERT_EQ (result, 300);
@Guruprasad_Bhat2 жыл бұрын
By far, best introductory explanation 🔥
@Cognitive-Programmer2 жыл бұрын
Thank you so much for your Comment 🙏
@Chavez3d2 жыл бұрын
This was very helpful thank you!! this cleared up serveral questions and misunderstandings I've had... THANK YOU!!
@Cognitive-Programmer2 жыл бұрын
Thank you so much for your comment
@actualprogramming4 жыл бұрын
Extremely helpful, Thanks 🙏🙏🙏. Would love to see a practical series on this as well.
@Cognitive-Programmer4 жыл бұрын
Thanks a lot 👍🙏🙏🙏
@ruixue69554 жыл бұрын
10:50 mock 13:36 stub
@Cognitive-Programmer4 жыл бұрын
Thanks for this but to understand it properly you need to see the complete video 😀
@mkc03212 жыл бұрын
amazing video, understood the difference between. mocks,stubs and fakes very well
@Cognitive-Programmer2 жыл бұрын
Thank you so much for your comment 🙏
@Cognitive-Programmer2 жыл бұрын
Thank you so much for your comment 🙏
@Cognitive-Programmer2 жыл бұрын
Thank you so much for your comment 🙏
@jazz4dayz5434 жыл бұрын
Great video! Really clearly explained with enough examples to get the point accross. Thanks :)
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment
@danielmihu15524 жыл бұрын
It's a really good video with right explanations and arguments. Congrats!
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment 🙏🙏🙏
@dataman173 жыл бұрын
crisp and clear! Great job
@Cognitive-Programmer3 жыл бұрын
Thanks for your comment 🙏🙏🙏
@susantasahoo91663 жыл бұрын
Nice & Simple explanation !!!
@Cognitive-Programmer3 жыл бұрын
Thanks for your comment 🙏🙏🙏
@shahin7511-yt Жыл бұрын
Alhamdulillah Thank you Sir, your lecture is awesome! Please take my respect!
@Cognitive-Programmer Жыл бұрын
Thank you so much for your comment 🙏
@amitjoshi57983 жыл бұрын
Explained perfectly. Thanks a lot!
@Cognitive-Programmer3 жыл бұрын
Thanks a lot for your comment 🙏🙏🙏
@Mueen5203 жыл бұрын
Thank you for concise explanation.
@Cognitive-Programmer3 жыл бұрын
Thanks a lot for your comment 🙏🙏
@raotemamata4 жыл бұрын
very nicely explained in simplest way. Thanks for this video.
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment 🙏🙏🙏
@dragonfalcon84744 жыл бұрын
This was a fantastic intro to Unit Testing.
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment 🙏🙏🙏
@NiyatiShah243 жыл бұрын
Thank you! This was brilliant!
@Cognitive-Programmer3 жыл бұрын
Thanks for your comment 🙏
@chandanguptaSDET4 жыл бұрын
A gem for beginners!! Thanks
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment 🙏🙏🙏
@hugopristauz36202 жыл бұрын
excellent explanations, very didactic, congrats 🙂
@Cognitive-Programmer2 жыл бұрын
Thank you so much for your comment 🙏
@alihaydargubatov27903 жыл бұрын
Amazing explanation. I wish you were my teacher at the university.
@Cognitive-Programmer3 жыл бұрын
Thanks a lot for your kind appreciation 🙏🙏🙏
@dubble. Жыл бұрын
For AAA, you can also use GWT which is commonly used. GWT stands for "Given", "When", "Then". Example: Given a first value 100; Given a second value 200; When we sum the two; Then the result should be 300; Extra useful notes: Often you can write GWT comments above to clarify which parts do what. If you write the GWT comments in co-pilot and ask for tests, it will likely write the tests for you and possibly even have an easier time writing the implementation too.
@Cognitive-Programmer Жыл бұрын
You can use things based on your choice, but Given, when, then is mostly used for depicting the business scenarios and not the unit test case. Hope it helps, thanks 🙏
@ayshababur93884 жыл бұрын
Thank you for making this video. It was so helpful and clear!
@Cognitive-Programmer4 жыл бұрын
Thanks a lot for your comment
@mytechio3 жыл бұрын
Hey,great video 🙏
@Cognitive-Programmer3 жыл бұрын
Thanks for your comment 🙏
@mrr8702 Жыл бұрын
thanks for this video, I learned a lot!
@Cognitive-Programmer Жыл бұрын
Great to know.. Thanks a lot for your comment 🙏
@tattwadarshipanda60294 жыл бұрын
Hello Sir, My pranam to you. Really learning a lot from you. So clear, concise and upto the point. Can you make a tutorial on Docker as per your style - short, clear, concise and upto the point.
@Cognitive-Programmer4 жыл бұрын
Hello Thank you for your kind words. I had plan for docker too.. but will certainly expedite the same. You'll hear from me soon. Thanks again for your comment 🙏🙏🙏
@misterrodger3 жыл бұрын
Wonderful teacher!
@Cognitive-Programmer3 жыл бұрын
Thanks a lot for writing this comment 🙏🙏🙏
@DjCtavia3 жыл бұрын
Came by pure randomness, but it's a really good video, good job!
@Cognitive-Programmer3 жыл бұрын
Thanks for stopping by and thanks a lot for your comment 🙏🙏🙏
@biz0unc33 жыл бұрын
Great video!
@Cognitive-Programmer3 жыл бұрын
Thank you so much for your comment 🙏🙏
@noahyannis24653 жыл бұрын
Great tutorial, thank you very much!
@Cognitive-Programmer3 жыл бұрын
Thanks a lot for your comment 🙏🙏🙏
@faithcyril5145 Жыл бұрын
thank you so much. very intuitive
@Cognitive-Programmer Жыл бұрын
Thanks for your comment 🙏
@shirishameka30114 жыл бұрын
Thank you for making this video. It is very helpful for beginners. Please make a video for Unit Testing C code Using Google Test. If possible make a video if cross compiler is used.
@SimonYells4 жыл бұрын
What cross-compiler are you intend to use?
@shirishameka30114 жыл бұрын
@@SimonYells ARM Cortex A9
@louisecrowe49683 жыл бұрын
Thank you for the really informative video!
@Cognitive-Programmer3 жыл бұрын
Thanks a lot for your comment 🙏🙏🙏
@musash1-173 жыл бұрын
Thank you, India.
@Cognitive-Programmer3 жыл бұрын
Thank you so much for your comment 🙏🙏🙏
@musash1-173 жыл бұрын
@@Cognitive-Programmer no problem, i love you.
@pablitoengineer5 жыл бұрын
I would like to see your definition for spies as well!! Very good video!!
@Cognitive-Programmer5 жыл бұрын
Hello Thanks for your comment and valuable suggestion.. I initially thought about it but discarded the idea as it would be too much Will definitely talk about it in some video Thanks again
@lauragriffiths33323 жыл бұрын
Thank you!
@Cognitive-Programmer3 жыл бұрын
Thanks for your comment 🙏🙏🙏
@akashjani9432 жыл бұрын
Just amazing!
@Cognitive-Programmer2 жыл бұрын
Thanks for your comment 🙏
@alexou8572 жыл бұрын
Thx my man :)
@Cognitive-Programmer2 жыл бұрын
Thanks for your comment 🙏
@dhanrajk661410 ай бұрын
Hi Sir, Is it possible use gmock to test functions which is written in c?
@jaecheokkim994 жыл бұрын
Thank you for easy explainations!
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment 🙏
@t1002100220024 жыл бұрын
Great explanation!!!
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment 🙏🙏🙏
@vivekm26743 жыл бұрын
Unit tests are written for finding bugs is a wrong statement. Their main benefits are catching regressions (when many people work on the same code base and someone breaks someone's else's code). Other benefits include, it serves as documentation and it also forces you to write loosely coupled modularized code, without which unit testing would be hard.
@Cognitive-Programmer3 жыл бұрын
Thanks for sharing your thoughts 🙏🙏🙏
@ShivaniOnYT3 жыл бұрын
thanks very much !
@Cognitive-Programmer3 жыл бұрын
Thanks for your comment 🙏🙏🙏
@dodokwak3 жыл бұрын
Thank you.
@Cognitive-Programmer3 жыл бұрын
Thanks for your comment 🙏
@a3587474 жыл бұрын
10:50 mock 13:36 stub 15:05 fakes
@Cognitive-Programmer4 жыл бұрын
Thanks 🙏🙏🙏
@higiniofuentes25513 жыл бұрын
Thank you very much for this very interesting video! I learned (finally) the purpose, and the different strategies to test All you explained here is valid for any programming language? In Python you have videos who explains the included system, but what are the different programs you can use with Cobol, JavaScript, Php, Sinatra, etc? Thank you!
@Cognitive-Programmer3 жыл бұрын
Thanks for your comment… whatever I talked about in this video is applicable for all programming languages and pretty much all unit test frameworks support this
@Pikachu8714 жыл бұрын
great video! really awesome explanations :)
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment 🙏🙏🙏
@codewithvinod9033 Жыл бұрын
great Job Sir
@Cognitive-Programmer Жыл бұрын
Thanks a lot 🙏
@arunpalaninathan10114 жыл бұрын
3:19 weather or whether ? I think this video never went for unit testing before its upload but the content it's says is pretty much good !
@Cognitive-Programmer4 жыл бұрын
Hello noted the mistake after upload. Sorry about that 🙏🙏🙏
@marveipana81724 жыл бұрын
Thanks Sir, good explanation :)
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment 🙏🙏🙏
@Derpaherpa1234 жыл бұрын
Sir this was great. Thank you for this
@Cognitive-Programmer4 жыл бұрын
Thanks a lot for your comment 👍🙏
@kaphwamas4 жыл бұрын
Thank you so much for this lecture sir.
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment 👍
@sumandas49244 жыл бұрын
Theory Explanation is really good. But some code samples for mock, stub and fake could have completed it properly.
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment.. noted
@samarthvijayvargiya517 Жыл бұрын
Sir If I want to test a function which uses a runtime object which cannot be initialised in any way but it’s object can only be filled when application is running like from a window in a windows app. How can I simulate that behavior I am trying with mock but it gives null references exception as it can only be generated when application runs
@podraig4 жыл бұрын
Good explanations, thank you!
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment
@batner5 жыл бұрын
The hardest part of introducing unit tests into an existing code is the changes required to be able to separate the units you decide on from external dependencies.
@Cognitive-Programmer5 жыл бұрын
Hi Thanks for your comment.. , Yes but it's mostly depends upon how the code is written
@harshavardhan99914 жыл бұрын
Thank you for detailed explanation !!
@aakankashasharma10073 жыл бұрын
9:34 - I am watching this when two days back, a major facebook/whatsapp/instagram outage happened. Lol
@ajaykryadav Жыл бұрын
Too good sir
@Cognitive-Programmer Жыл бұрын
Thank you so much 🙏
@SlainR24 жыл бұрын
very impressive didactics
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment
@indramaniarora79014 жыл бұрын
3:26. If the code is not working as expected, then it has bugs, right? then where is the diff between 1 and 2?
@Cognitive-Programmer4 жыл бұрын
Hello Thanks for your comment. Working as expected means that it is doing what its expected to do neither less nor more. for example - an empty function is not a bug but if it does nothing it's not working as expected Hope this helps Thanks
@Smartskaft24 жыл бұрын
I guess it is just a matter of definition. What is a bug? I would agree with that a bug is unexpected behaviour. So anything not working as you expect it to, is in my mind a bug. Whether it crashes, sends an exception, or keeps working seemingly fine. But it's just one of those things that we all feel different about. Alas, "bug or feature?" ;)
@tchewagama4 жыл бұрын
good one
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment 🙏🙏🙏
@abhishekbhattacharya92162 жыл бұрын
I am trying to learn terms correctly related to fake,stub,mock, spy. Can you mention book references. Discussion of BDD, TDD are far too much and code samples are little or missing.
@Smartskaft24 жыл бұрын
What is your view on Google Mock? I feel after using it for a while that it is written to cover both mocking and stubbing. At least, that's how it has been used everywhere I've seen.
@Cognitive-Programmer4 жыл бұрын
Hello Thanks for your comment..yes you can do create stubs with google mock..
@daixtr5 жыл бұрын
Is it correct to say that "fakes" introduces a certain degree of impurity into unit testing?
@Cognitive-Programmer5 жыл бұрын
Hello Thanks for your comment... Some engineers do have adverse view on fakes...because its almost near to real implementation... So that can be termed as so called impurity...but I don't subscribe to this opinion
@kamy45183 жыл бұрын
Hello can you help me with unit test . Example with solution for c++ Java python c
@Cognitive-Programmer3 жыл бұрын
Thank you for your comment.. I am not planning to create any more series on language specific unit tests at this moment of time..but will certainly consider once my backlog is lighten. Thanks again for your comment 🙏🙏🙏
@thrivenipogu7521 Жыл бұрын
Autostub means?
@sankarsubramaniyam61923 жыл бұрын
How to mock c functions
@Cognitive-Programmer3 жыл бұрын
Thanks for your comment..Have you checked frameworks like CMock? To be honest I haven’t used any ‘C’ language mocking frameworks so can’t suggest on the usability of it. Hope it helps ..thanks 🙏
@samucancld2 жыл бұрын
SOS EL UNO PAPÁ
@FahmiEshaq4 жыл бұрын
Crystal clear
@Cognitive-Programmer4 жыл бұрын
Thanks a lot for your comment
@ignacioswboada6603 жыл бұрын
It's a good explanation, unfortunately it has no real examples of tests in code.
@thexht79274 жыл бұрын
3:17 whether not weather.
@Cognitive-Programmer4 жыл бұрын
Thanks 🙏🙏🙏
@rianpriyanto22154 жыл бұрын
10:50
@rtothec12345 ай бұрын
If you want to find no bugs in your unit tests then write no unit tests.
@Cognitive-Programmer4 ай бұрын
Agreed 👍
@heath17964 жыл бұрын
Milligram not centigram...
@Cognitive-Programmer4 жыл бұрын
😀 🙏
@GAMINGWORLDsagar2 жыл бұрын
hello sir
@asoshah3212 жыл бұрын
10 000 WHAT?
@arupdash59044 жыл бұрын
WTF, 1 to n objects can be independent. U crazy. 1 - n objects can't be a unit of code. There is a reason and that is "Those were created separately' This is stupid AF
@ANOCEANGROUND3 жыл бұрын
STOP whining, add your 2 cents, but no thanks. BE NICE....
@AnoNym-zi5ty6 ай бұрын
I must disagree. You can smell the quality of code instantly if you see it. Code smell.
@Cognitive-Programmer4 ай бұрын
Hi Thanks for sharing your thoughts.. however if I can just add my 2 cents.. a production level code, because of its size and comp will always smell bad even though it might not really be