Software Testing Tutorial - Learn Unit Testing and Integration Testing

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024

Комментарии •

  • @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.

  • @환이-f6w
    @환이-f6w 3 года назад +3

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

  • @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 !!

  • @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

  • @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.

  • @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.

  • @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.

  • @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!

  • @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.

  • @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 🙇‍♂

  • @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
      ruclips.net/video/2t_R-F2Z7xs/видео.html

  • @rahff99
    @rahff99 2 года назад +1

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

  • @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.

  • @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

  • @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.

  • @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!

  • @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!

  • @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.

  • @centurion3708
    @centurion3708 3 года назад +2

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

  • @agnosticmanquestionsall2409
    @agnosticmanquestionsall2409 2 года назад +1

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

  • @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.

  • @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

  • @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

  • @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

  • @cefalea666
    @cefalea666 2 года назад

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

  • @rogerkaufmann1761
    @rogerkaufmann1761 2 года назад

    You are the best teacher for programming by far.

  • @tugbanur07
    @tugbanur07 3 года назад +5

    You have excellent teaching skills, thanks for your effort.

  • @rabiyounes8928
    @rabiyounes8928 Год назад

    Best unit & integration tests tutorial so far, thanks mate

  • @alexakias97
    @alexakias97 3 года назад +4

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

  • @maximlejaeghere1730
    @maximlejaeghere1730 3 года назад

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

  • @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!

  • @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

  • @jmf5655
    @jmf5655 3 года назад +4

    Love your courses!
    Greetings from Argentina

  • @rakanasfour448
    @rakanasfour448 Год назад

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

  • @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!

  • @pasvupaspris303
    @pasvupaspris303 6 месяцев назад

    you can also create an ArgumentCaptor with the @Captor annotation

  • @dreb.7760
    @dreb.7760 2 года назад +1

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

  • @макскупр-ш4у
    @макскупр-ш4у 2 года назад

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

  • @devguyahnaf
    @devguyahnaf 2 года назад +1

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

  • @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.

  • @karlodimjasevic527
    @karlodimjasevic527 Год назад

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

  • @alexandre9051
    @alexandre9051 2 года назад +1

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

  • @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

  • @averagedev7768
    @averagedev7768 Год назад

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

  • @Devivl
    @Devivl 7 месяцев назад

    Thank you! You are a good teacher!

  • @gradientO
    @gradientO 3 года назад +4

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

  • @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? Это же кусок не?

  • @uppsaladde
    @uppsaladde 3 года назад +4

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

  • @qwertyguy7750
    @qwertyguy7750 2 года назад +1

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

  • @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!

  • @user-segadev
    @user-segadev 3 года назад +3

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

  • @gabrielsales311
    @gabrielsales311 3 года назад +1

    Thank you Nelson! You're the best teacher

  • @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.

  • @kostiantynkarzhanov9216
    @kostiantynkarzhanov9216 6 месяцев назад

    Thank you! Great tutorial! 💛

  • @ArabSoftwareArchTalks
    @ArabSoftwareArchTalks 3 года назад

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

  • @dubaifatimaali
    @dubaifatimaali 3 года назад +4

    Great looking forward to it

  • @abdelrahmanmetwally7674
    @abdelrahmanmetwally7674 2 года назад

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

  • @cuongnguyenhung9977
    @cuongnguyenhung9977 2 года назад

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

  • @abessesmahi4888
    @abessesmahi4888 3 года назад

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

  • @fufufifi2349
    @fufufifi2349 9 месяцев назад

    Thanks, barakaAllahu fik

  • @humanminus84
    @humanminus84 3 года назад +1

    Jazakallah Khair brother , Happy Ramadan

  • @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.

  • @shyamgurunath5876
    @shyamgurunath5876 3 года назад

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

  • @Hivstein
    @Hivstein Год назад

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

  • @bimsaragunarathna2900
    @bimsaragunarathna2900 3 года назад

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

  • @derrickagyemang1259
    @derrickagyemang1259 2 года назад

    Great tutorial Nelson, really love your content

  • @rocavill
    @rocavill 9 месяцев назад

    This is a great video! Very well explained!

  • @carlitos4505
    @carlitos4505 3 года назад

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

  • @barnardmutezo8276
    @barnardmutezo8276 3 года назад +3

    Finally! Thanks bro.

  • @devashishroychowdhury3080
    @devashishroychowdhury3080 2 года назад

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

  • @bhoomikadetroja5584
    @bhoomikadetroja5584 3 года назад +1

    Such an amazing tutorial

  • @peepoHappyy
    @peepoHappyy 3 года назад +5

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

  • @apall2764
    @apall2764 3 года назад

    You're a great teacher great job!

  • @maksatrysbekov194
    @maksatrysbekov194 3 года назад +11

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

  • @Yaruk
    @Yaruk 3 года назад

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

  • @yevheniikiprenko3639
    @yevheniikiprenko3639 3 года назад

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

  • @zainwasem
    @zainwasem 2 года назад

    A man with zero haters

  • @haithemothmane4558
    @haithemothmane4558 3 года назад +1

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

  • @m7mdarwani964
    @m7mdarwani964 Год назад

    I really enjoyed this video. This is my first time playing with tests. I heard that software engineers write tests before actually coding their projects. I wonder if the same is true for Spring Boot developers.

  • @buddhihasanka2877
    @buddhihasanka2877 Год назад

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

  • @munawarabbas1636
    @munawarabbas1636 3 года назад +6

    i just say may allah bless you more and more

  • @iLlamas1
    @iLlamas1 3 года назад

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

  • @kamalzubairov2344
    @kamalzubairov2344 2 года назад

    Thank you very much. Very clear explanation

  • @kingskings2026
    @kingskings2026 2 года назад

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

  • @GregDonald
    @GregDonald 2 года назад +2

    What happened to the integration tests at 1:14? Where's anything about basic @Entity testing? Are there other videos where these things are covered?

  • @faixan13
    @faixan13 2 года назад

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

  • @berihunhadis3960
    @berihunhadis3960 Год назад

    Thanks a lot you are always supportive

  • @AndreyDelay
    @AndreyDelay 2 года назад

    Amazing lesson! Thanks for the efforts!

  • @iha3775
    @iha3775 2 года назад

    Thanks a lot! Very usefull and simplest guide!

  • @rachidbenkitou
    @rachidbenkitou Год назад

    Great course, it was really helpful, thank you very much

  • @mihe1195
    @mihe1195 2 месяца назад

    Thanks for your great video!

  • @youssefelmoro1464
    @youssefelmoro1464 2 года назад +5

    In the Argument Captor chapter, you forget to mock the call to the selectExistsEmail method to return false. (but it worked fine because the default value of boolean primitiv is false, right ?)

  • @kediryibrie1008
    @kediryibrie1008 3 года назад +2

    Wealykum aselam, thank you bro . It is helpful

  • @singhmanmeet89
    @singhmanmeet89 3 года назад +1

    Great content brother !!

  • @ekaterinasheludenko6028
    @ekaterinasheludenko6028 2 года назад

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

  • @ibrahimqandeel5326
    @ibrahimqandeel5326 3 года назад

    Amazing crash course. Thank you very much.

  • @jmaleal1
    @jmaleal1 2 года назад +1

    I am following your video with the max attention. When i was doing the first repository test i had to chance the aplication,properties file in test resources:
    spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
    to :
    spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
    Just wondering if someone was stuck in there too
    Keep the good work.

  • @amitsri
    @amitsri Год назад

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

  • @MiguelLutz-vi6zc
    @MiguelLutz-vi6zc Год назад +2

    I'm not sure if I'm the only one struggling with some of your tutorials but a lot of times I can't setup the projects like you do. For the DemoApplcationTest right in the beginning of this tutorial I am getting an "Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method" error. I have only cloned your project and tried to run the test...

  • @uvinduharshan9712
    @uvinduharshan9712 Год назад

    Thanks😍😍 Superb Tutorial🥰🥰