Unit Testing Android Introduction (JUnit5, JUnit4, Mockito)

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

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

  • @demoscena1180
    @demoscena1180 5 ปีที่แล้ว +12

    You're the man. Happy wedding day Mitch!

  • @JayeshBabuAV
    @JayeshBabuAV 4 ปีที่แล้ว +11

    Hi, mitch. Could you please do a tutorial on how to do unit testing on retrofit calls in mvvm architecture?

  • @Abhishekdubey-mn8up
    @Abhishekdubey-mn8up 5 ปีที่แล้ว +3

    You are the best person I have ever come across.

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

    Very good, Mitch. I like your videos.

  • @iann189
    @iann189 5 ปีที่แล้ว

    best teacher I have ever come across

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

    thank you so much🤩🤩🤩

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

    Mitch is the 🐐

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

    Great explanation but TDD is not exactly what you said, first you write the test that not pass then you implement the feature to make the test pass

    • @codingwithmitch
      @codingwithmitch  4 ปีที่แล้ว

      that's what I said

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

      @@codingwithmitch really at 8:28 you said the opposite

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

    Thanks

  • @samirshrestha5252
    @samirshrestha5252 5 ปีที่แล้ว

    Sir, please make a video how to use restful api in android and what are the things that we have to know before jumping into restful api

  • @darotudeendurosomo9301
    @darotudeendurosomo9301 4 ปีที่แล้ว

    You have always been a awesome gentle teacher.
    Could you make a tutorial on using socket in Android?

  • @btc-news
    @btc-news 4 ปีที่แล้ว +1

    Your definition of TDD is wrong

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

    The longest ad I ever seen

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

    Hi, Mitch,
    I'm thinking about purchase this course on your site, I generally watch your videos and they are all quite good. But I have one thing in my mind, does this course meet all expectations for the business industry, I mean the testing part. Thanks in advance,

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

      A better course for testing is the clean architecture course. It showcases a real practical way to build out your backend layers and write tests for then

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

      @@codingwithmitch I am all okay to your suggestions, I just wanna learn this stuff very well and there is barely source at least i couldnt find much but your videos

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

      @@bluebird5600 I got good stuff my friend. Clean architecture is what I recommend.

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

      @@codingwithmitch 👍🏻thanks man, and pls keep making these i appreciate your work

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

    Hello Mitch
    I became a member today. Lets see how it goes !

  • @m.arslankhan7449
    @m.arslankhan7449 5 ปีที่แล้ว

    I was watching Room persistence library and in which you used Asyctask, I didn't find any proper way to ask a question because on youtube this lecture was not available. So I am posting here kindly I need help regarding abstraction My question is how we abstraction hides the real implementation of the abstract method. if we look asynctask you will see an abstract method name {doinbackground} this as annotation of workerthread, now the question is where is the real implementation of this method, how this method become asynchronous. If you did not get my question then here is an example on upload StackOverflow.

    • @codingwithmitch
      @codingwithmitch  5 ปีที่แล้ว

      I don't know what you're asking. But it sounds like you are overthinking it.
      Also, you shouldn't really use AsyncTask anymore. There's a lot of much better options. Things like:
      1) RxJava
      2) Kotlin Coroutines
      3) and even Executors
      The Room Persistence library course is for beginners. Now that you're done it, you should check out another course and move to the next level.
      I recommend this one: codingwithmitch.com/courses/rest-api-mvvm-retrofit2/

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

    How old are you?

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

    btw Good shirt man!

  • @m.arslankhan7449
    @m.arslankhan7449 5 ปีที่แล้ว

    It is an amazing explanation till the 11:00 but from 11:23 to 11:46 I fall in love with you ...It's loving, I have no wording...Thank you

  • @m.irtizakhursheed3040
    @m.irtizakhursheed3040 4 ปีที่แล้ว +1

    Can we use Espresso for Unit testing in Android?

    • @benarjee9777
      @benarjee9777 5 หลายเดือนก่อน

      espresso is for ui testing

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

    A small remark in 8:37, your presentation of Test driven development is absolutly wrong, and it's exactly the inverse of what you are saying.
    In a test-driven development environment, you code the test first, considering your class or your logic unit as a black box. It's what is so difficult to learn for beginners who are used to code the feature and then develop test for that feature (which is an absurd thing to do).
    If you have coded something, and you test it by having a knowledge of how it works inside, you will subconsciously code the test in accordance with this logic. That is why you need to code the test first, to put a certain standard, and then code something that meets that standard ; and iterate over the standard/exigence that you put on that feature to develop more robust tests.

  • @is0658
    @is0658 4 ปีที่แล้ว

    hi, is there a way where I can pay only for a unit test course instead of subscription?

    • @codingwithmitch
      @codingwithmitch  4 ปีที่แล้ว

      Nope only monthly or yearly subscription for unlimited access to all courses.

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

    41 k views and 41k subscribers at the time 😂