Software Testing Tutorial - Learn Unit Testing and Integration Testing

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ต.ค. 2024

ความคิดเห็น • 399

  • @calkelpdiver
    @calkelpdiver 3 ปีที่แล้ว +48

    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.

  • @poojaandpawan6282
    @poojaandpawan6282 3 ปีที่แล้ว +37

    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
      @fandusmercius723 8 หลายเดือนก่อน

      cant you use rollbacks etc?

  • @centurion3708
    @centurion3708 3 ปีที่แล้ว +22

    I was just looking for this topic and this appears on my recomendations, how convinient

    • @destro5990
      @destro5990 3 ปีที่แล้ว

      It's the third time it happened to me this week

  • @환이-f6w
    @환이-f6w 3 ปีที่แล้ว +3

    I am a college student studying in Korea. All of your lectures are very, very good.

  • @ChetanJain1507
    @ChetanJain1507 3 ปีที่แล้ว +9

    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.

  • @hinerron
    @hinerron 3 ปีที่แล้ว +19

    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!

  • @bastisprogrammingcorner
    @bastisprogrammingcorner 2 ปีที่แล้ว +8

    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.

  • @rahff99
    @rahff99 2 ปีที่แล้ว +1

    Thank you, I'm new in Java ecosystem so your courses are very valuable.
    جزاك الله خيرا

  • @candimahendra9457
    @candimahendra9457 3 ปีที่แล้ว +2

    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.

  • @federicoladereche8727
    @federicoladereche8727 3 ปีที่แล้ว +20

    Excellent tutorial!
    Your technical and educational skills 👨‍🎓 match your kindness and goodness.
    Keep it up! 💪
    Saludos desde Uruguay mi amigo 💙🤍

    • @engnaderabdelkader5291
      @engnaderabdelkader5291 3 ปีที่แล้ว

      A Symfony 4 development environment with Docker and Docker-compose
      th-cam.com/video/2t_R-F2Z7xs/w-d-xo.html

  • @aimka77
    @aimka77 2 ปีที่แล้ว +7

    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.

  • @hananurrehman
    @hananurrehman 8 หลายเดือนก่อน

    Perhaps one of the few videos that actually show an integration test rather than the usual theoretical approach.
    Masha Allah keep it up.

  • @centurion3708
    @centurion3708 3 ปีที่แล้ว +2

    These video finally made me understand what the hell what all this testing thing all about, loved it

  • @joshualipian1187
    @joshualipian1187 2 หลายเดือนก่อน

    Oh God, your explanation is so good and simple. I was able to understand what happen behind the scene of the testing and especially in the debug part. This is my first time learning the JUnit testing, thankfully you are the first that pop up in the search engine :D.
    Thank you for your teaching sir, sadly I cannot afford your course in software testing, I wish I had money to afford for :). But the good thing I was able to learn in this video. Please don't stop creating a video like this, thank you 🙇‍♂

  • @jarveyd8660
    @jarveyd8660 2 ปีที่แล้ว +1

    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!

  • @gabrielfono844
    @gabrielfono844 ปีที่แล้ว

    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.

  • @licken1408
    @licken1408 3 ปีที่แล้ว +96

    4:20 In the UML Diagram the integration part should be StudentController.

    • @badripaudel77
      @badripaudel77 3 ปีที่แล้ว +6

      Yeah, that is confusing. I was amazed for few seconds.

    • @vdeschuy190
      @vdeschuy190 3 ปีที่แล้ว +2

      Thanks for confirming I was also confused :)

    • @luissepulveda2703
      @luissepulveda2703 2 ปีที่แล้ว

      You're right

  • @tugbanur07
    @tugbanur07 3 ปีที่แล้ว +5

    You have excellent teaching skills, thanks for your effort.

  • @fsantosinfo
    @fsantosinfo 3 ปีที่แล้ว +2

    This was the second video course I wacthed from this channel.
    Thank you so much for the video quality and the explanations.
    Really good!

  • @pawel80
    @pawel80 ปีที่แล้ว

    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.

  • @cefalea666
    @cefalea666 2 ปีที่แล้ว

    For me, one of the best teachers all around.. greetings from Spain Amigo!!

  • @rmdaw00
    @rmdaw00 2 ปีที่แล้ว +1

    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

  • @indahyusuf5391
    @indahyusuf5391 ปีที่แล้ว +1

    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

  • @agnosticmanquestionsall2409
    @agnosticmanquestionsall2409 2 ปีที่แล้ว +1

    This is amazing, the most professional level video I've ever seen on TH-cam. Liked and Subscribed.

  • @jmf5655
    @jmf5655 3 ปีที่แล้ว +4

    Love your courses!
    Greetings from Argentina

  • @pasvupaspris303
    @pasvupaspris303 6 หลายเดือนก่อน

    you can also create an ArgumentCaptor with the @Captor annotation

  • @temrimoose
    @temrimoose 3 ปีที่แล้ว +2

    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

  • @макскупр-ш4у
    @макскупр-ш4у 2 ปีที่แล้ว

    why i does not found this last month? Its amazing! Hey, you have a talant to explain things by simple language!

  • @rakanasfour448
    @rakanasfour448 ปีที่แล้ว

    Thank you so much. I watched the entire tutorial all the way to the end

  • @rogerkaufmann1761
    @rogerkaufmann1761 2 ปีที่แล้ว

    You are the best teacher for programming by far.

  • @abessesmahi4888
    @abessesmahi4888 3 ปีที่แล้ว

    و عليكم السلام و رحمة الله و بركاته، بارك الله فيك أخونا.
    Thank you so much brother.

  • @mr.personman7426
    @mr.personman7426 2 ปีที่แล้ว +3

    When testing the if student email exists, you could use a getter for the email defined in the student model class. Great video!

  • @gradientO
    @gradientO 3 ปีที่แล้ว +4

    wa alaikum as salam!! Thank you for this huge tutorial. I'm still new to backend. Gotta learn more

  • @marco.garofalo
    @marco.garofalo 3 ปีที่แล้ว +5

    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.

  • @alexakias97
    @alexakias97 3 ปีที่แล้ว +4

    Great tutorial overall. One suggestion. Plz consider zooming out a bit. Thanks!

  • @averagedev7768
    @averagedev7768 ปีที่แล้ว

    This is basically an entire university subject practice in one video. Awesome job

  • @alexandre9051
    @alexandre9051 2 ปีที่แล้ว +1

    You really know how to get the message across! Thank you very much for this video!

  • @dreb.7760
    @dreb.7760 2 ปีที่แล้ว +1

    That was a great example at the end, thank you!

  • @maximlejaeghere1730
    @maximlejaeghere1730 3 ปีที่แล้ว

    This is gold. Finally someone that explains testing to me in an understandable way. Thank you so much.

  • @matthiasbreiter4177
    @matthiasbreiter4177 ปีที่แล้ว

    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.

  • @rabiyounes8928
    @rabiyounes8928 ปีที่แล้ว

    Best unit & integration tests tutorial so far, thanks mate

  • @j-don6668
    @j-don6668 3 ปีที่แล้ว +157

    Can you do a kafka tutorial? There's not many good ones out there

    • @MintyKanesh
      @MintyKanesh 3 ปีที่แล้ว +8

      Yeah I've found spring kafka very confusing!

    • @duparcg
      @duparcg 3 ปีที่แล้ว +3

      Especially spring batch

    • @skumakerguitar8708
      @skumakerguitar8708 3 ปีที่แล้ว

      yes please! agree

    • @DerAltruist
      @DerAltruist 3 ปีที่แล้ว +5

      @@MintyKanesh Yeah, you ever read "the castle" by kafka? Makes no sense!

    • @muthuicris2030
      @muthuicris2030 3 ปีที่แล้ว +2

      kindly do one for spring kafka

  • @kalebtf
    @kalebtf 2 ปีที่แล้ว +2

    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!

  • @fufufifi2349
    @fufufifi2349 9 หลายเดือนก่อน

    Thanks, barakaAllahu fik

  • @karlodimjasevic527
    @karlodimjasevic527 ปีที่แล้ว

    Awesome! You've covered everything that I was looking for! Keep this up!

  • @vovaslipchik6834
    @vovaslipchik6834 3 ปีที่แล้ว +5

    h2 in-memory database for tests can leak some features that you use in application db (postgres or mysql) so it's handy to use test containers, looking forward to testcontainers tutorial :)

    • @GSBroker
      @GSBroker 3 ปีที่แล้ว

      Hey, may I ask you what you mean by leak? Can you elaborate please?

    • @vovaslipchik6834
      @vovaslipchik6834 3 ปีที่แล้ว +3

      @@GSBroker i meant - miss some features that are applicable for some databases only

  • @longnguyenvan9532
    @longnguyenvan9532 3 ปีที่แล้ว +2

    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!

  • @sormariano
    @sormariano 2 ปีที่แล้ว

    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.

  • @uppsaladde
    @uppsaladde 3 ปีที่แล้ว +4

    Thanks for a good tutorial, this was exactly what I needed. Keep it up! :)

  • @devashishroychowdhury3080
    @devashishroychowdhury3080 2 ปีที่แล้ว

    It also helped me to understand the software engineering topics..

  • @Devivl
    @Devivl 7 หลายเดือนก่อน

    Thank you! You are a good teacher!

  • @dubaifatimaali
    @dubaifatimaali 3 ปีที่แล้ว +4

    Great looking forward to it

  • @amigoscode
    @amigoscode  3 ปีที่แล้ว +8

    Download Diffblue to auto generate unit and integration tests
    www.diffblue.com/community-edition/download/promo?code=amigoscode
    Best selling courses
    ► Spring Full Stack and React Course WITH 30% OFF - amigoscode.com/p/full-stack-spring-boot-react/?product_id=2963573&coupon_code=FULLSTACK30
    ► Software Testing Course - amigoscode.com/p/software-testing
    ► Repo to follow along: github.com/amigoscode/spring-boot-fullstack-professional/

  • @user-segadev
    @user-segadev 3 ปีที่แล้ว +3

    ты молодец! желаю миллион подписчиков твоему каналу )

  • @oberon1995
    @oberon1995 2 ปีที่แล้ว

    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
      @NickRuster 2 ปีที่แล้ว

      А почему future peace? Это же кусок не?

  • @Hivstein
    @Hivstein ปีที่แล้ว

    Salam Alikum, what to say, amazing are your courses, barak Obama fik; sorry Barak Allah fik :).

  • @gabrielsales311
    @gabrielsales311 3 ปีที่แล้ว +1

    Thank you Nelson! You're the best teacher

  • @bimsaragunarathna2900
    @bimsaragunarathna2900 3 ปีที่แล้ว

    ThanX Bro. You're a great teacher. Literally saved me here

  • @faixan13
    @faixan13 2 ปีที่แล้ว

    great tutorial. Many thanks
    keep calm and say "INSHALLAH'

  • @humanminus84
    @humanminus84 3 ปีที่แล้ว +1

    Jazakallah Khair brother , Happy Ramadan

  • @qwertyguy7750
    @qwertyguy7750 2 ปีที่แล้ว +1

    Again right to the point, easily understandable and great content as always 👏🏽

  • @cuongnguyenhung9977
    @cuongnguyenhung9977 2 ปีที่แล้ว

    Hey bro. Thank you so much. I love your courses, it is useful and clear.

  • @abdelrahmanmetwally7674
    @abdelrahmanmetwally7674 2 ปีที่แล้ว

    Wa 3alikum el salam brother happy to find a Muslim brother in this field that alone puts a lot of inspiration

  • @Yaruk
    @Yaruk 3 ปีที่แล้ว

    Thanks for this Tutorial, I have an interview tomorrow for Junit Test

  • @peepoHappyy
    @peepoHappyy 3 ปีที่แล้ว +5

    I was wondering if you can create a crash course on Web Development, amazing content as always :D

  • @kostiantynkarzhanov9216
    @kostiantynkarzhanov9216 6 หลายเดือนก่อน

    Thank you! Great tutorial! 💛

  • @barnardmutezo8276
    @barnardmutezo8276 3 ปีที่แล้ว +3

    Finally! Thanks bro.

  • @berihunhadis3960
    @berihunhadis3960 ปีที่แล้ว

    Thanks a lot you are always supportive

  • @kediryibrie1008
    @kediryibrie1008 3 ปีที่แล้ว +2

    Wealykum aselam, thank you bro . It is helpful

  • @kamalzubairov2344
    @kamalzubairov2344 2 ปีที่แล้ว

    Thank you very much. Very clear explanation

  • @shyamgurunath5876
    @shyamgurunath5876 3 ปีที่แล้ว

    Recently saw your channel...Loving your videos...Keep posting....Anything related to data science will be helpful...

  • @lighttheoryllc4337
    @lighttheoryllc4337 3 ปีที่แล้ว +1

    Salam from USA. Brother, we spoke before about Muslims whom may know Tensorflow and Custom Layers. Please dedicate some time to this. Very Important for us Muslims to learn to code and predict in Tensorflow and Custom Layers w/ Keras.

  • @khalidbahri
    @khalidbahri ปีที่แล้ว

    بارك الله فيك 🤲

  • @ArabSoftwareArchTalks
    @ArabSoftwareArchTalks 3 ปีที่แล้ว

    You are amazing, keep moving, and thanks so much 🌷

  • @bhoomikadetroja5584
    @bhoomikadetroja5584 3 ปีที่แล้ว +1

    Such an amazing tutorial

  • @devguyahnaf
    @devguyahnaf 2 ปีที่แล้ว +1

    I'm a simple man. I see Nelson thumbsup, I click on video

  • @yevheniikiprenko3639
    @yevheniikiprenko3639 3 ปีที่แล้ว

    Thanks for the video! I'm really like the way you teach.

  • @haithemothmane4558
    @haithemothmane4558 3 ปีที่แล้ว +1

    Thanks a lot, that was really nice, perfect and well explained

  • @rocavill
    @rocavill 10 หลายเดือนก่อน

    This is a great video! Very well explained!

  • @iLlamas1
    @iLlamas1 3 ปีที่แล้ว

    this looks really good, I will buy the course next month

  • @buddhihasanka2877
    @buddhihasanka2877 ปีที่แล้ว

    Great video! I have learned a lot. Thank you.

  • @carlitos4505
    @carlitos4505 3 ปีที่แล้ว

    Thanks for this!! You’ve earned a new subscriber!

  • @kingskings2026
    @kingskings2026 2 ปีที่แล้ว

    Thanks a lot. This really saved me a lot of time.

  • @derrickagyemang1259
    @derrickagyemang1259 2 ปีที่แล้ว

    Great tutorial Nelson, really love your content

  • @munawarabbas1636
    @munawarabbas1636 3 ปีที่แล้ว +6

    i just say may allah bless you more and more

  • @khamittukenbayev5054
    @khamittukenbayev5054 2 ปีที่แล้ว

    thanks, now I understand why write tests :)

  • @mihe1195
    @mihe1195 2 หลายเดือนก่อน

    Thanks for your great video!

  • @maksatrysbekov194
    @maksatrysbekov194 3 ปีที่แล้ว +11

    Do have experience with message brokers like kafka or rabbitmq? I would appreciate sharing video about these technologies too

  • @kapilnayak4030
    @kapilnayak4030 3 ปีที่แล้ว

    I must say god bless you. may god give you good health. you are awesome bro......

  • @iha3775
    @iha3775 2 ปีที่แล้ว

    Thanks a lot! Very usefull and simplest guide!

  • @elijahmulilimulwa8190
    @elijahmulilimulwa8190 2 ปีที่แล้ว

    Thank you very good tutorial. Kindly find some time and do one for elastic search with Spring boot

  • @knightbattle1
    @knightbattle1 3 ปีที่แล้ว

    Thank you form Korea

  • @ibrahimqandeel5326
    @ibrahimqandeel5326 3 ปีที่แล้ว

    Amazing crash course. Thank you very much.

  • @azlinabintizainuddin8294
    @azlinabintizainuddin8294 2 ปีที่แล้ว

    Masya Allah, good explaination. jazakallahukhair bro..

  • @__-cd1nd
    @__-cd1nd 10 หลายเดือนก่อน

    Wa’alikum Alssalam ! Thanks brother

  • @ekaterinasheludenko6028
    @ekaterinasheludenko6028 2 ปีที่แล้ว

    Hi! This video is very good. Concepts are well explained, thank you :)

  • @uvinduharshan9712
    @uvinduharshan9712 ปีที่แล้ว

    Thanks😍😍 Superb Tutorial🥰🥰

  • @ChandlerBing11
    @ChandlerBing11 2 ปีที่แล้ว +1

    Amazing tutorial, Mama Samba!!! You could bring some content about QueryDSL, because it's type-safe and few channels approach this. Thank you so much

  • @amitsri
    @amitsri ปีที่แล้ว

    Is there another video for integration testing? I needed to learn that primarily but the end just gave an overview. 🤷‍♂️🤷‍♂️

  • @AndreyDelay
    @AndreyDelay 2 ปีที่แล้ว

    Amazing lesson! Thanks for the efforts!