Software Testing Tutorial - Learn Unit Testing and Integration Testing
Ғылым және технология
Software testing tutorial is a must. Specifically Unit Testing and Integration testing using Java and JUnit5 testing framework
You will learn about Junit5, Integration Tests, Assertions and Mocking with Java Mockito
#softwaretesting #softwaretestingturorial #amigoscode
Download Diffblue to auto generate unit and integration tests
► www.diffblue.com/community-ed...
Clone repo: github.com/amigoscode/spring-...
🙊 Subscribe to Amigoscode - bit.ly/2HpF5V8
► Courses Available for free here - amigoscode.com/courses
► Join Private Facebook Group - / 456035171490753
► Join Discord - bit.ly/2wL029v
⭐ Table Of Contents ⭐
00:00 - Software Testing Overview
00:40 - Download Diffblue to auto-generate tests
01:44 - UML Diagram
05:16 - JUnit5 and AsserJ
10:06 - Maven Dependencies
12:54 - Lets Write a Test
21:14 - Testing Repositories
30:01 - H2 Database
35:21 - @DataJPATest
42:25 - Mockito
54:08 - Argument Captor
01:01:02 - Testing Add Student
01:12:12 - Integration Testing Overview
01:14:03 - Next Steps
🙊 Here are the goods for all my videos video:
► Recommended Books
Clean Code
- amzn.to/2UGDPlX
HTTP: The Definitive Guide
- amzn.to/2JDVi8s
Clean Architecture
- amzn.to/2xOBNXW
► Computer and Monitor
New Apple MacBook Pro
- amzn.to/3464Mmn
Dell 27 INCH Ultrasharp U2719D Monitor
- amzn.to/2xM3nW1
Double Arm Stand Desk Mount
- amzn.to/3aYKKfs
USB C Hub Multiport Adapter
- amzn.to/2Jz7NlL
► Camera Gear
Sony ILCE7M3B Full Frame Mirrorless Camera
- amzn.to/346QIJn
Sigma 16 mm F1.4 DC DN
- amzn.to/2wbic3Q
Sigma 33B965 30 mm F1.4 DC DC
- amzn.to/39G37Fd
Awesome Screen Saver
- github.com/JohnCoates/Aerial
IDE I use for coding
- Iterm
- VsCode
- GoLand
- IntelliJ
- Sublime
💯 You can also follow me here:
► Don't forget to subscribe | bit.ly/2HpF5V8
► Join Closed Facebook Group for discussion and early access videos and courses | bit.ly/2FbuIkx
► Follow me on Instagram | bit.ly/2TSkA9w
► Join Discord - bit.ly/2wL029v
❤️ Thanks for watching
Пікірлер: 390
Impressive! I'm a Tester who is working with Developers to improve their Unit Testing and code quality. I've been tasked to put together some training materials and I'm going to include this. The video hits on so many things, but makes them very clear and concise in definition and explanation. You show both the power & advantages of the tool(s) you use and for Unit Testing itself. So glad I found this.
Thank you! The topic of testing is often neglected when teaching programming. It makes sense to learn this very early and get into the habit of writing tests for your code. As you said, there is no way around this in professional software development.
Love it. You're a great teacher. I'm a Java boot camp student and I really appreciate seeing how a professional dev does it vs how I'm taught. Learning so many great tricks thanks to you!
Everything is clear and pretty straightforward! Great job!
I wish I had found this earlier !! I spent quite a lot of time figuring out different tutorials for JUnit 5 and I ended up not writing JUnits for my Repository interfaces but going through this video has made me realize the simplest of ways to test Repositories by setting up H2 in memory database. Perfectly narrated and at a good pace. Keep up the good work !!
@fandusmercius723
3 ай бұрын
cant you use rollbacks etc?
This was the second video course I wacthed from this channel. Thank you so much for the video quality and the explanations. Really good!
OMG i am so glad I found you. You have such an amazing way of explaining things. You are truly a natural at this. Your voice and teaching style is so soothing, I feel like it's my close friend explaining this complicated stuff to me. You are amazing, God bless! I can't thank you enough!
Thanks a lot , among all the massive trainings out there, I have been studying yours since the past months, well and clearly explained and updated!
Yes please need a kafka tutorial as well, because now a days kafka is in demand. thanks in advance and for every tutorial, they are really helpful.
When testing the if student email exists, you could use a getter for the email defined in the student model class. Great video!
4:20 In the UML Diagram the integration part should be StudentController.
@badripaudel77
3 жыл бұрын
Yeah, that is confusing. I was amazed for few seconds.
@vdeschuy190
2 жыл бұрын
Thanks for confirming I was also confused :)
@luissepulveda2703
2 жыл бұрын
You're right
I had a lot of questions while watching this video, but you always answered on my questions a few minutes later, you are awesome dude.
Perhaps one of the few videos that actually show an integration test rather than the usual theoretical approach. Masha Allah keep it up.
Hello Nelson Thank you so much for your professionnalisme, infact I so much enjoyed going through this testing and mocking. I am thinking of going through it once more to grasp the essentials,frankly speaking you are excellent in the ways you make things look simpler indah
These video finally made me understand what the hell what all this testing thing all about, loved it
Wa alaikum salam wr. wb. I never doing any test before. And now in my new company, I have to doing test. Very helpful. Thank you for sharing.
thanks so much sir I have been working as backend engineer for 5 months I was given a task to write unit test and integration test. this give me great star. I am going ahead and enroll on your course for integration testing. thanks so much.
Thank you, I'm new in Java ecosystem so your courses are very valuable. جزاك الله خيرا
This is amazing, the most professional level video I've ever seen on KZread. Liked and Subscribed.
Best unit & integration tests tutorial so far, thanks mate
You have excellent teaching skills, thanks for your effort.
Awesome! You've covered everything that I was looking for! Keep this up!
Thanks for a good tutorial, this was exactly what I needed. Keep it up! :)
This is basically an entire university subject practice in one video. Awesome job
Again right to the point, easily understandable and great content as always 👏🏽
I am a college student studying in Korea. All of your lectures are very, very good.
This tutorial is neat, as usual. Just a humble remark : @29:00, i think the variable expected should be named "result" (or "actual") to be coherent with what you nicely explained regarding BDD, since it's in the when part of the given-when-then methodology. Else, the assert is a little bit confusing: assertThat(expected).isTrue(); Should be: assertThat(result).isTrue(); Thanks a lot for everything you bring to the community.
Great Tutorial Thank you, I am learning from your course after watching other JUnit tutorial , thank you for showing a proper real world example. feeling more confident now, Looking forward to explore videos from your channel Just for others that are following here are things I had to do: - got error complaining about lambok not getting access to a class, update the version, I updated Spring boot to latest version in the pom.xml file - spring.datasource.url=jdbc:h2:mem:db;DB_CLOSE_DELAY=-1 this is the url path that worked for me
For me, one of the best teachers all around.. greetings from Spain Amigo!!
That was a great example at the end, thank you!
You really know how to get the message across! Thank you very much for this video!
Thank you so much. I watched the entire tutorial all the way to the end
I was just looking for this topic and this appears on my recomendations, how convinient
@destro5990
3 жыл бұрын
It's the third time it happened to me this week
Very good and great that you motivate programmers to write tests :) There is so much stuff you _will_ miss if you don't write a Test.
Thank you! Great tutorial! 💛
You are the best teacher for programming by far.
Thank you Nelson! You're the best teacher
FYI the contextLoads test is not pointless at all, it verifies that the application is bootstrapped correctly and there is no exception raised by the application context. If you have missing configuration properties or some (auto)wiring issues that test would have caught it.
Thank you! You are a good teacher!
Thanks for this!! You’ve earned a new subscriber!
Such an amazing tutorial
You're a great teacher great job!
و عليكم السلام و رحمة الله و بركاته، بارك الله فيك أخونا. Thank you so much brother.
Excellent tutorial! Your technical and educational skills 👨🎓 match your kindness and goodness. Keep it up! 💪 Saludos desde Uruguay mi amigo 💙🤍
@engnaderabdelkader5291
3 жыл бұрын
A Symfony 4 development environment with Docker and Docker-compose kzread.info/dash/bejne/ZKiTtI9_Yr2dqNY.html
Hey bro. Thank you so much. I love your courses, it is useful and clear.
Thanks for the video! I'm really like the way you teach.
Hey man, your vidieos are really amazing that I have to admit :)) If you have time, please compose socket videos. You have a good explaining so I think you can give the best anwser how the socket works. Thank you and have a good day!
Amazing lesson! Thanks for the efforts!
Great course, thanks! Before watching the video, I got a little familiar with the theory of integration testing and this made it easier to understand the topic. Took a little effort to write a test to check for the possibility of deletion, it was great! I will watch your content in the future peace!
@NickRuster
2 жыл бұрын
А почему future peace? Это же кусок не?
you can also create an ArgumentCaptor with the @Captor annotation
Great tutorial Nelson, really love your content
Great looking forward to it
This is a great video! Very well explained!
You are amazing, keep moving, and thanks so much 🌷
Love your courses! Greetings from Argentina
@NicoProgramando
3 жыл бұрын
Es un capo el Amigoscode
Recently saw your channel...Loving your videos...Keep posting....Anything related to data science will be helpful...
Thanks, barakaAllahu fik
wa alaikum as salam!! Thank you for this huge tutorial. I'm still new to backend. Gotta learn more
why i does not found this last month? Its amazing! Hey, you have a talant to explain things by simple language!
Great video! I have learned a lot. Thank you.
Thank you for you very useful videos and above all for your very very clear English language: this is a great added value for us followers not having English as mother tongue.
Thanks a lot, that was really nice, perfect and well explained
This is gold. Finally someone that explains testing to me in an understandable way. Thank you so much.
ThanX Bro. You're a great teacher. Literally saved me here
Amazing crash course. Thank you very much.
Thanks a lot you are always supportive
Finally! Thanks bro.
An excellent material!!!! thanks for sharing knowledge!!!
Thanks for this Tutorial, I have an interview tomorrow for Junit Test
Thanks a lot! Very usefull and simplest guide!
You rock! really helpful!
Great video! Thanks a lot!
Great content brother !!
Thanks a lot. This really saved me a lot of time.
Great course, it was really helpful, thank you very much
great tutorial. Many thanks keep calm and say "INSHALLAH'
Can you do a kafka tutorial? There's not many good ones out there
@MintyKanesh
3 жыл бұрын
Yeah I've found spring kafka very confusing!
@duparcg
3 жыл бұрын
Especially spring batch
@skumakerguitar8708
2 жыл бұрын
yes please! agree
@DerAltruist
2 жыл бұрын
@@MintyKanesh Yeah, you ever read "the castle" by kafka? Makes no sense!
@muthuicris2030
2 жыл бұрын
kindly do one for spring kafka
Thank you very much. Very clear explanation
this looks really good, I will buy the course next month
Very useful video. Thanks a lot!
I'm a simple man. I see Nelson thumbsup, I click on video
Good evening dear friend I am a Moroccan developer in java spribg boot and I love your tutorials. I have a request please if you can make a video on spring kafka and thank you in advance
Hi! This video is very good. Concepts are well explained, thank you :)
Thanks for this great video!
Awesome,This Tutorial is very nice!!!
Thanks😍😍 Superb Tutorial🥰🥰
Great tutorial overall. One suggestion. Plz consider zooming out a bit. Thanks!
This is amazing. Obrigado Amigo.
Really good video and nicely explained in detail 👍
Salam Alikum, what to say, amazing are your courses, barak Obama fik; sorry Barak Allah fik :).
Great Tutorial, thanks
It also helped me to understand the software engineering topics..
thx for your courses :)
ты молодец! желаю миллион подписчиков твоему каналу )
Great course like everyone !!
Well done Bro! Thank you
Thanks, amazing and clear
I was wondering if you can create a crash course on Web Development, amazing content as always :D
Thank you! You are great
Awesome! Thanks!