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 - Наука та технологія
Thankyou sir, in this series you are covering something that no other tutorial covers on youtube as of today.
You are welcome friend.
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.
Thank you, awesome unit test videos !! =)
Comprehensive series. Thanks
And Yei!! We have our context 🥳 great video
Thank you for the simple explanation
Very informative. Love it
Great tutorial on Unit test.
Amazing video sir.
crystal clear, thanks
U r great Belal......!
Awesome video, keep up the incredible work! :)
Thanks
Great, tutorial. want complete series on Unit test
Yeah more videos will come soon.
Great bro
Thanx man this was very helpful ☺️
Glad it helped
Great tutorial sir 🎉🎉🎉
Thanks
Useful tutorial 👏👌 But watched in 1.5x playback speed
Thx
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.
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'
That spend data will add to the local database?
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?
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.
Why do we need to extend TestCase class and use run with annotation?
plzz make an video on how to use Gmail API in apps
Your code for the SpendDatabase class doesn't even compile !
roboelectric won't work here for the context
don't work download code in your website. i subscribed you but website not notify subscribe.