Android Unit Test Room Database

Поділитися
Вставка
  • Опубліковано 30 чер 2024
  • Welcome to another video that is "Android Unit Test Room Database". As title says it clearly, in this video we will write test cases for our Room Database.
    I already told you in the previous videos, that we are going to build a very simple application throughout this series. The application is called "Spend Tracker". And in this app I need to save the User Spend in Room Database.
    This course is not about building application, but it is about writing tests. So in this video we will write test for testing the Database, that we created for this application.
    If you are having trouble navigating between different lessons of this Android Test Driven Development Course then you can directly watch the following playlist.
    👉 bit.ly/2PPdUIV
    Here you will find all the videos of this course in chronological order.
    In this video we used topics like Room and Coroutines. You can check separate courses for these topics here.
    👉 Android Room Database Tutorial bit.ly/2PfQHeN
    👉 Coroutines Tutorial bit.ly/2AnPzCj
    If you want the source code of this project, then get it from here
    👉 www.simplifiedcoding.net/andr...
    If you want to get in touch with me; you can find my contact details here:
    👉 www.simplifiedcoding.net/about/
    Finally, If you love my content please SHARE my courses to your friends. You can share this course to your Facebook, WhatsApp etc.
    For more contents related to Software Development visit my website.
    👉 www.simplifiedcoding.net
    You can SUPPORT me if you want
    👉 Patreon: / belalkhan
    👉 UPI (India Only): probelalkhan@okaxis
    👉 PayTM (India Only): +917549161079
    👉 PayPal: www.paypal.me/probelalkhan
    You can also check some of my other courses from these links
    👉 Android MVVM Tutorial: bit.ly/3iLfVzu
    👉 Android Game Development Tutorial: bit.ly/38JmltC
    👉 Retrofit Android Tutorial: bit.ly/2DEwAl1
    👉 Android RecyclerView Tutorial: bit.ly/2TqVjPz
    👉 Android Room Tutorial: bit.ly/2PfQHeN
    👉 Firebase Auth Tutorial: bit.ly/2WUGhEo
    👉 Android Notification Tutorial: bit.ly/2Sc6jQl
    👉 Building a Complete Wallpaper App: bit.ly/30UN8zV
    👉 Build Tic Tac Toe in Android: bit.ly/30goxW0
    ❤️❤️ Thank You All for the Love and Support ❤️❤️
    #AndroidTDD
    #TestDrivenDevelopment
    #AndroidDevelopment
  • Наука та технологія

КОМЕНТАРІ • 34

  • @mehulbisht9708
    @mehulbisht9708 3 роки тому +6

    Thankyou sir, in this series you are covering something that no other tutorial covers on youtube as of today.

    • @BelalKhan
      @BelalKhan 3 роки тому +1

      You are welcome friend.

  • @Danilo-O
    @Danilo-O 2 роки тому

    I'm very glad and grateful to have found your channel. Your content and teaching abilities is one of the best out there. Thank you.

  • @fernandoborges3580
    @fernandoborges3580 3 роки тому

    Thank you, awesome unit test videos !! =)

  • @MrVipulLal
    @MrVipulLal 2 роки тому

    Comprehensive series. Thanks

  • @czerewacz
    @czerewacz 3 роки тому

    And Yei!! We have our context 🥳 great video

  • @ivansyabro7854
    @ivansyabro7854 Рік тому

    Thank you for the simple explanation

  • @nirmalrevar
    @nirmalrevar 3 роки тому

    Very informative. Love it

  • @AbdulBhaiya786
    @AbdulBhaiya786 2 роки тому

    Great tutorial on Unit test.

  • @masummodi
    @masummodi 3 роки тому +1

    Amazing video sir.

  • @tahirdevlog2047
    @tahirdevlog2047 2 роки тому

    crystal clear, thanks

  • @be_like__prateek
    @be_like__prateek 3 роки тому

    U r great Belal......!

  • @ComputerScienceSimplified
    @ComputerScienceSimplified 3 роки тому +1

    Awesome video, keep up the incredible work! :)

  • @anikroy6110
    @anikroy6110 3 роки тому +1

    Great, tutorial. want complete series on Unit test

    • @BelalKhan
      @BelalKhan 3 роки тому +1

      Yeah more videos will come soon.

  • @prasannvyawahare8788
    @prasannvyawahare8788 3 роки тому

    Great bro

  • @techmarinar
    @techmarinar 2 роки тому

    Thanx man this was very helpful ☺️

  • @jayantkumar1954
    @jayantkumar1954 3 роки тому +1

    Great tutorial sir 🎉🎉🎉

  • @zayif1
    @zayif1 3 роки тому

    Useful tutorial 👏👌 But watched in 1.5x playback speed

  • @tortoiseshell_cat
    @tortoiseshell_cat 3 роки тому

    Thx

  • @nolomarsh3372
    @nolomarsh3372 Рік тому +1

    When I try to run the code you present, I get an error indicating that db never gets initialized properly. I suspect I'm missing a dependency or something (since I already tried copy-pasting the code to rule out any typos), but the download page for the source code doesn't work (link never "unlocks" after subscribing) so I can't compare it against what you have.

    • @tubezaktube
      @tubezaktube Рік тому

      Same issue for me. Solution was to include in app level build file:
      --Add below to plugins section at top of file
      id 'kotlin-kapt'
      --Add below to dependencies
      kapt 'androidx.room:room-compiler:2.5.0'

  • @ManisankarChittela
    @ManisankarChittela Рік тому

    That spend data will add to the local database?

  • @mehdibiqam8197
    @mehdibiqam8197 3 роки тому +1

    Hi, thanks for this valuable content I just have a confusion, as you said first we need to write our test then refactor the code and test it again so basically our first test has to fail but in this episode, your test passed in the first try so isn't it violating the principle?

    • @SimplifiedCoding
      @SimplifiedCoding  3 роки тому

      Yes because it is a tutorial video. You write test first to basically confirm the logic that you want to write. And this way your code gets documented as well.

  • @vengateshm2122
    @vengateshm2122 3 роки тому

    Why do we need to extend TestCase class and use run with annotation?

  • @Atom404
    @Atom404 3 роки тому

    plzz make an video on how to use Gmail API in apps

  • @MrVipulLal
    @MrVipulLal 2 роки тому +1

    Your code for the SpendDatabase class doesn't even compile !

  • @prudhvir3ddy
    @prudhvir3ddy 3 роки тому

    roboelectric won't work here for the context

  • @mohammadsourov5650
    @mohammadsourov5650 3 роки тому +1

    don't work download code in your website. i subscribed you but website not notify subscribe.