Why Do We Test Our Code? - Android Testing - Part 1

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

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

  • @PhilippLackner
    @PhilippLackner  4 года назад +87

    Little correction at around 4:50
    I don't mean Integration tests vs integrated tests, I mean integration tests vs instrumented tests
    Integration tests test the interaction between different components and instrumented tests test android components on the emulator
    Sorry for that

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

      Thanks :) I will keep in mind. You teach better than University professors that i encountered

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

      InstrumentedTests test IntegrationTest on the emulator. right?

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

      @@tejas5331 indeed

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

      @@androidcodingwithkh7896 I got Job in Tesla , thanx to him.

    • @Axelfromthehudjelud
      @Axelfromthehudjelud Год назад +1

      Basically, those two terms come from two different classifications. As the official documentations states:
      Tests classification depending on size, or degree of isolation:
      1. Unit tests or small tests only verify a very small portion of the app, such as a method or class.
      2. Integration tests are in between and check the integration between two or more units.
      3. UI tests or big tests verify larger parts of the app at the same time, such as a whole screen or user flow.
      Also, there is a classification depending on where tests run:
      1. Instrumented tests - run on Android device.
      2. Local tests - run on development machine or a server.
      Usually, local tests are: Unit tests, Integration tests or simulators (will be explained below). Instrumented tests are: UI tests and Integration tests.
      It is very important to note that not all unit tests are local, and not all end-to-end tests run on a device. The best example is Roboelectric - Android simulator that runs locally.

  • @aritrabhattacharya7722
    @aritrabhattacharya7722 4 года назад +56

    First of all thanks a ton man!! You are doing phenomenal work :)
    Just wanted to add: PLEASE PLEASE PLEASE continue this testing series. There is still not a single playlist in youtube that explains testing (JUNIT-MOCITO-ESPRESSO) properly.
    People talk about the theoretical stuff but topics like Testing, DI, architecture are best explained by implementation in a real-life moderately complex project. Specially Testing and Dagger 2 are not given their due importance in most of the android dev channels in youtube. If you can PLEASE ALSO START ANOTHER SERIES FOR DAGGER 2 that actually digs into the implementation part in a complex project, that would be great. We would totally pay for that stuff if you upload your tutorials in Udemy or similar platforms.

    • @PhilippLackner
      @PhilippLackner  4 года назад +21

      Thank you for your comment. This series will start with some basic testing stuff in an empty AS project, but then we will go on to write an actual MVVM app with Room, Retrofit, Dagger, coroutines and all that stuff so that you learn how you can test that :)

    • @aritrabhattacharya7722
      @aritrabhattacharya7722 4 года назад +1

      @@PhilippLackner that's awesome 🔥

    • @reksaboss7402
      @reksaboss7402 4 года назад +1

      @@PhilippLackner Wow

    • @sallyweaver2976
      @sallyweaver2976 4 года назад

      ​@@PhilippLackner and please please please dont stop this series..and kindly do test with view models in mvvm. how to write test cases when view models and dependencies are involved

    • @matt-g-recovers
      @matt-g-recovers 3 года назад +1

      I concur

  • @rkstudio8807
    @rkstudio8807 4 года назад +4

    i am searching this kinds of tutorial for testing form 2 years, finally i found wonderful playlist. thanks Philipp Lackner

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

    oh man thank god you philipp have this series i wanted to learn it for months now , but every time i struggle to do so, but with you it will be much easier and fun , thank you so much for your effort.

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

    This would be the first playlist of unit test, thanks for making it happen. You are legend!

  • @matt-g-recovers
    @matt-g-recovers 3 года назад +1

    This playlist has become a reference bible for me.
    For anything to be production-worthy, it must have the tests man, must have the tests...
    Plus, I'm falling in love with the process of TDD and find it is very rewarding, it's also very hard sometimes!
    Software Engineering is a creative intellectual pursuit and when testing is viewed properly, (I hated it for a long time) it is just as rewarding, if not more for the pride and confidence the code will work as intended!
    Just going to keep doing it and keep getting better.
    Cheers and thank you from the bottom of my heart for this.

  • @dmitriivolkov133
    @dmitriivolkov133 Месяц назад

    Phillipp, thank you you're doing super important work! It's a pleasure to watch your lessons!

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

    Thanks dear Philipp , I do agree with you that tutorials must be explained on projects and example and not just with theory like what you always do ⭐⭐⭐⭐⭐

  • @Rajmanov
    @Rajmanov 4 года назад +1

    I was just searching to learn about testing in android and here comes your video.

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

    Yes, I was here just for one video,
    but I checked out all your playlist!
    saved them to watch later!
    subscribed to your channel!
    and now going to follow you on your all social handles!
    Everything's free here,
    everything's what I have wanted,
    everything from switching Java to Kotlin to jetpacks!
    advance Kotlin and testings too!
    Keep us the good work!
    thank you for everything!

  • @rahulbhavani6160
    @rahulbhavani6160 4 года назад +2

    Are you a mind reader bro??? 🤔
    I was just searching to learn about testing in android and here comes your video.
    Thank you 🙏

  • @ryanrvldo
    @ryanrvldo 4 года назад

    Can't wait for every single video of this playlist. Just wanna learn about testing in android development. Thank you!

  • @sarahan7864
    @sarahan7864 4 года назад

    Very excited to start this series!

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

    I'm so excited for this series

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

    I am so excited for these series!

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

    Very much appreciate this efforts buddy, never found any good video of testing. Very excited to jump in💯💯💪💪💪

  • @noyaljose9635
    @noyaljose9635 4 года назад

    Thanks for considering making the example as a real world example, it's really helping

    • @PhilippLackner
      @PhilippLackner  4 года назад +1

      Yes, that's much better for learning, you're welcome!

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

    Philipp I'm so excited for the series!

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

    Philip am so exited for the series. I have looking for a tutorial to learn tests and you just made it right.💯

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

    I'm watching this very late, but feels like this series is going to help me get a job

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

    I'm very excited to start this series, I really need it, thank you!

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

    Hey Philipp! Thanks for making such awesome videos. Please carry on.

  • @fahrican9708
    @fahrican9708 4 года назад

    Yes, totally excited about this series.

  • @Vishalchauhan-dv5wb
    @Vishalchauhan-dv5wb 4 года назад

    u are my fav teacher for android.........

  • @BalbirSingh-mm7jf
    @BalbirSingh-mm7jf 3 года назад

    I am excited to see this testing series. please keep continue to it

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

    Philip I'm so excited for the series

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

    Hello Philipp, Just now i started watching your videos its pretty interesting and I will continue to learn Android Unit Testing from all your videos.Thanks

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

    yeah I'm so exited to this series

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

    Thank you , i really appreciate your videos, it seems that this playlist is very helpful to me , i will follow along

  • @mehulbisht9708
    @mehulbisht9708 4 года назад

    was looking out for Unit testing videos ( not theoretical ) but those were not explanatory enough. I know Philipp will be making them in a new fashion. Keep going !

    • @PhilippLackner
      @PhilippLackner  4 года назад +1

      Yes, a little bit of theory is necessary, but in the 3rd video we start to write our own tests :)

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

    excited for the series :)

  • @nikhilkatekhaye7773
    @nikhilkatekhaye7773 4 года назад +1

    Really waiting for next video :) You are doing great job.

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

    Thank you master! I admire all you videos! So
    understandable, informative, fun! God bless you! Waiting for new series!

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

    I'm excited for the series

  • @ampo2004
    @ampo2004 4 года назад

    So excited to see more from you sir your fundamental tutorials are great and always a source to go back for me

  • @rishadbaniya1679
    @rishadbaniya1679 4 года назад +2

    Please dont give up on making kotlin videos...there are very less like you❤️❤️

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

    Thanks for your videos Phillip!

  • @achalbadgujar9519
    @achalbadgujar9519 4 года назад

    Philip m really excited to start this series withy you

  • @raghavsomani4634
    @raghavsomani4634 4 года назад

    Much awaited!!👀

  • @MuhammadUsman-n9x9d
    @MuhammadUsman-n9x9d 6 месяцев назад

    @Philip, I know i am to late but i am still excited for this series. Love from pakistan

  • @ashishgautam2842
    @ashishgautam2842 4 года назад

    super duper excited as always 😊

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

    It was a great topic to use ,create more of this topic

  • @ManpreetSingh-cs5kp
    @ManpreetSingh-cs5kp 4 года назад

    This is what was missing. Kindly continue this work. As I also did some work in android testing I face lot of problems in testing services , code that have broadcast receivers used inside the code ,multi threaded code etc etc.

    • @PhilippLackner
      @PhilippLackner  4 года назад

      I can't cover all of testing in a single playlist here, but it will cover the common android stuff like testing LiveData, coroutines, ViewModels, Repositories, Room, etc...

    • @ManpreetSingh-cs5kp
      @ManpreetSingh-cs5kp 4 года назад

      @@PhilippLackner thanks dev, that would be the need of an hour now. Alteast for unit and instrumentation tests prospect :)

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

    Hey Sir, I am so exited to watch this series, thank you

  • @vijay6877
    @vijay6877 4 года назад

    this is the first time I'm watching you and I like this video also I'm excited. Thank you for this series.

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

    Cool!Awesome video as usual!

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

    excited!!!

  • @baijusharma6027
    @baijusharma6027 4 года назад

    This is so exciting thank you alot. Very soon you will have lots of subscribe on this channel. Your contents are just amazing.

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

    Brother, you are a life saver

  • @akashkhatkale8598
    @akashkhatkale8598 4 года назад

    Very excited 😍

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

    Excited 🙂

  • @ShubhamSinghMusic
    @ShubhamSinghMusic 4 года назад

    Great work
    Please never stop making such amazing videos ♥️♥️

  • @devetips
    @devetips 4 года назад

    Hats off man you did great job 🌹🌹

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

    really i love it, you done a great job.

  • @fabriziovit.developerandro8522
    @fabriziovit.developerandro8522 3 года назад

    Good video
    Well explained, thanks.

  • @aridwiprayogo
    @aridwiprayogo 4 года назад

    It's what I'm looking for, nice job brother 😁😁

  • @alextokarev7750
    @alextokarev7750 4 года назад

    smashing like right away.Love your videos

  • @iftak01
    @iftak01 4 года назад

    Really good playlist and its NEW and KOTLIN :)

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

    well done bro keep it up

  • @jaydippatel6507
    @jaydippatel6507 4 года назад

    Very excited

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

    Nice!!

  • @hellosagar
    @hellosagar 4 года назад

    Keep up the good work man :)
    we really can't thank you with our words
    Thanks :)

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

    Thanks Philipp

  • @aneessaleh2870
    @aneessaleh2870 4 года назад

    great course man , thnx

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

    i am so excited

  • @asifbhat6579
    @asifbhat6579 4 года назад

    I can't wait 😍😍😍

  • @codingMechanic73
    @codingMechanic73 4 года назад

    I'm excited😁😁

  • @helpmikey
    @helpmikey 4 года назад

    super excited. :D

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

    Where have you been all my life?

  • @dawoodamir2011
    @dawoodamir2011 4 года назад

    Thanks bro for this series i think most of really nead it

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

    Excellent

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

    Thank you sir!

  • @vishalgaurav4411
    @vishalgaurav4411 4 года назад

    I'm excited

  • @mukeshverma-cg3kq
    @mukeshverma-cg3kq 3 года назад

    Budy your are really awesome and the way you explain all things are really great and awesome 👌👏always I'm watching your lectures are really helpful for me. I'm Keep learning forms your videos.
    Please Keeping continue budy they are really helpful for everyone or for me it's lots. Thank you budy😊.

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

    Awesome man 👏👏

  • @6june87
    @6june87 3 года назад

    Why did I missed this series

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

    thank you very much😍

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

    Boss, your are awesome.

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

    Hello bro :) Can you make a video series about version control and CI/CD process ?

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

    thumb from Indonesia

  • @bankaiQPL
    @bankaiQPL 4 года назад

    very nice

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

    What about unit test for coroutines? Great Video by the way. Keep up the good work. :)

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

    lets learn something new....great

  • @MCStarYT
    @MCStarYT 4 года назад

    Thank you so so much!

  • @MrRahulmalik
    @MrRahulmalik 4 года назад

    Please make a video on how to consume GraphQl api with Apollo using MVVM and coroutines with repository pattern

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

    Wow, it's awesome playlist but It outdated, could you please create new unit testing ?

  • @amitmondal7427
    @amitmondal7427 4 года назад

    Hey Please make some tutorials about Android Paging 3 library, most important topic.
    Thank You.

  • @TIERE85
    @TIERE85 4 года назад

    Can you help me? If i write validation for authentication and i need to set error to edit text if its not valid what is the right way? How to write a function correctly to test it and how the test will be written? Thx for your videos!!!

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

    May be silly question. Is this is responsibility of testers? Or developer has to take care of this?

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

    Hi can you please make same for java?

  • @sreeharik7005
    @sreeharik7005 4 года назад

    Love from 🇮🇳

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

    how do i purchase all of courses ?

  • @sachin2dehury
    @sachin2dehury 4 года назад

    Hey can u make videos on android navigation..i am having hard time in understanding ... peace...love from india.🔥

  • @littlegenius6932
    @littlegenius6932 4 года назад

    Good job bro :)

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

    you are great

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

    Great :)

  • @sheebazafer3961
    @sheebazafer3961 4 года назад

    thanks a ton mannnnn:)

  • @antoniokomangyudistira4150
    @antoniokomangyudistira4150 4 года назад

    Thanks sir

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

    😍

  • @Zeeshan-Syed
    @Zeeshan-Syed 4 года назад

    Everytime I wanna learn testing, i start watching tutorials, and feel like I have to write code again that is nearly ½ of code..
    Instead of writing that much code, I'm used to test manually..
    Someone change my mind 😒

    • @PhilippLackner
      @PhilippLackner  4 года назад

      And you think always testing your whole app manually everytime is faster? Might be true for a todo app, but once it gets more complex there is no way its faster manually 😁