Uploaded September 2020 | Updated November 2026, 3 hours ago
Unit Testing with Mockito in Flutter
A couple videos ago we gave a short intro to Unit Testing. However it was missing a really big part! You can't do much Unit Testing without being able to Mock! In this example we will mock firebase auth, which enables us to run tests for all the login functions.
Widget Testing: youtu.be/7N1qRivtCWI
Integration Testing: youtu.be/E2xO_u2WMhA
Link to the Code: github.com/tadaspetra/todoapp
Connect With Me
✦ My Website: [tadaspetra.com/](https://tadaspetra.com/#/)
✦ Live Coding: [twitch.tv/tadaspetra](https://www.twitch.tv/tadaspetra)
✦ Twitter: [twitter.com/tadaspetra](https://twitter.com/tadaspetra)
✦ Chat on Discord: [discord.gg/CPwSezC](https://discord.gg/CPwSezC)
✦ Instagram: [instagram.com/tadaspetra/](https://www.instagram.com/tadaspetra/)
I also do lots of Investing
✦ FREE stock: [join.robinhood.com/tadasp2](https://join.robinhood.com/tadasp2)
My Top 5 Books:
✦ Brave New World - Aldous Huxley: [amzn.to/2JyaK96](https://amzn.to/2JyaK96)
✦ 1984 - George Orwell: [amzn.to/3lmLzUk](https://amzn.to/3lmLzUk)
✦ The Millionaire Fastlane - MJ Demarco: [amzn.to/2ViGthn](https://amzn.to/2ViGthn)
✦ The 4-Hour Workweek - Timothy Ferriss: [amzn.to/3mnypYD](https://amzn.to/3mnypYD)
✦ Homo Deus - Yuval Noah Harari: [amzn.to/2VlFRYe](https://amzn.to/2VlFRYe)
Youtube Gear
✦ MacBook Pro 16 inch: [amzn.to/3qe4MeF](https://amzn.to/3qe4MeF)
✦ MX Master 3 Mouse: [amzn.to/2VlkZQS](https://amzn.to/2VlkZQS)
✦ Canon Rebel SL3: [amzn.to/2ViIfPv](https://amzn.to/2ViIfPv)
✦ Hiearcool USB Hub: [amzn.to/3llsIsP](https://amzn.to/3llsIsP)
✦ iPad Pro 12.9 (3rd Generation): [amzn.to/36kaVy0](https://amzn.to/36kaVy0)
✦ Apple Pencil (2nd Generation): [amzn.to/2JoHy4y](https://amzn.to/2JoHy4y)
✦ Yeti Microphone: [amzn.to/37oRNOq](https://amzn.to/37oRNOq)
✦ Rode Boom Arm: [amzn.to/3lnEKCb](https://amzn.to/3lnEKCb)
✦ Blue Radius II Shock Mount: [amzn.to/2JoIfea](https://amzn.to/2JoIfea)
✦ Blue RPop Filter: [amzn.to/39rQSiZ](https://amzn.to/39rQSiZ)
✦ Sony WH1000XM3: [amzn.to/3moWgHh](https://amzn.to/3moWgHh)
Thank you for watching!
#unittesting #fluttertesting #testing
Unit Testing with Mockito in Flutter
A couple videos ago we gave a short intro to Unit Testing. However it was missing a really big part! You can't do much Unit Testing without being able to Mock! In this example we will mock firebase auth, which enables us to run tests for all the login functions.
Widget Testing: youtu.be/7N1qRivtCWI
Integration Testing: youtu.be/E2xO_u2WMhA
Link to the Code: github.com/tadaspetra/todoapp
Connect With Me
✦ My Website: [tadaspetra.com/](https://tadaspetra.com/#/)
✦ Live Coding: [twitch.tv/tadaspetra](https://www.twitch.tv/tadaspetra)
✦ Twitter: [twitter.com/tadaspetra](https://twitter.com/tadaspetra)
✦ Chat on Discord: [discord.gg/CPwSezC](https://discord.gg/CPwSezC)
✦ Instagram: [instagram.com/tadaspetra/](https://www.instagram.com/tadaspetra/)
I also do lots of Investing
✦ FREE stock: [join.robinhood.com/tadasp2](https://join.robinhood.com/tadasp2)
My Top 5 Books:
✦ Brave New World - Aldous Huxley: [amzn.to/2JyaK96](https://amzn.to/2JyaK96)
✦ 1984 - George Orwell: [amzn.to/3lmLzUk](https://amzn.to/3lmLzUk)
✦ The Millionaire Fastlane - MJ Demarco: [amzn.to/2ViGthn](https://amzn.to/2ViGthn)
✦ The 4-Hour Workweek - Timothy Ferriss: [amzn.to/3mnypYD](https://amzn.to/3mnypYD)
✦ Homo Deus - Yuval Noah Harari: [amzn.to/2VlFRYe](https://amzn.to/2VlFRYe)
Youtube Gear
✦ MacBook Pro 16 inch: [amzn.to/3qe4MeF](https://amzn.to/3qe4MeF)
✦ MX Master 3 Mouse: [amzn.to/2VlkZQS](https://amzn.to/2VlkZQS)
✦ Canon Rebel SL3: [amzn.to/2ViIfPv](https://amzn.to/2ViIfPv)
✦ Hiearcool USB Hub: [amzn.to/3llsIsP](https://amzn.to/3llsIsP)
✦ iPad Pro 12.9 (3rd Generation): [amzn.to/36kaVy0](https://amzn.to/36kaVy0)
✦ Apple Pencil (2nd Generation): [amzn.to/2JoHy4y](https://amzn.to/2JoHy4y)
✦ Yeti Microphone: [amzn.to/37oRNOq](https://amzn.to/37oRNOq)
✦ Rode Boom Arm: [amzn.to/3lnEKCb](https://amzn.to/3lnEKCb)
✦ Blue Radius II Shock Mount: [amzn.to/2JoIfea](https://amzn.to/2JoIfea)
✦ Blue RPop Filter: [amzn.to/39rQSiZ](https://amzn.to/39rQSiZ)
✦ Sony WH1000XM3: [amzn.to/3moWgHh](https://amzn.to/3moWgHh)
Thank you for watching!
#unittesting #fluttertesting #testing




✦ Live Coding: [https://twitch.tv/tadaspetra](https://www.twitch.tv/tadaspetra)
✦ Twitter: [https://twitter.com/tadaspetra](https://twitter.com/tadaspetra)
✦ Chat on Discord: [https://discord.gg/CPwSezC](https://discord.gg/CPwSezC)
✦ Instagram: [https://www.instagram.com/tadaspetra/](https://www.instagram.com/tadaspetra/)
I also do lots of Investing
✦ FREE stock: [https://join.robinhood.com/tadasp2](https://join.robinhood.com/tadasp2)
My Top 5 Books:
✦ Brave New World - Aldous Huxley: [https://amzn.to/2JyaK96](https://amzn.to/2JyaK96)
✦ 1984 - George Orwell: [https://amzn.to/3lmLzUk](https://amzn.to/3lmLzUk)
✦ The Millionaire Fastlane - MJ Demarco: [https://amzn.to/2ViGthn](https://amzn.to/2ViGthn)
✦ The 4-Hour Workweek - Timothy Ferriss: [https://amzn.to/3mnypYD](https://amzn.to/3mnypYD)
✦ Homo Deus - Yuval Noah Harari: [https://amzn.to/2VlFRYe](https://amzn.to/2VlFRYe)
Youtube Gear
✦ MacBook Pro 16 inch: [https://amzn.to/3qe4MeF](https://amzn.to/3qe4MeF)
✦ MX Master 3 Mouse: [https://amzn.to/2VlkZQS](https://amzn.to/2VlkZQS)
✦ Canon Rebel SL3: [https://amzn.to/2ViIfPv](https://amzn.to/2ViIfPv)
✦ Hiearcool USB Hub: [https://amzn.to/3llsIsP](https://amzn.to/3llsIsP)
✦ iPad Pro 12.9 (3rd Generation): [https://amzn.to/36kaVy0](https://amzn.to/36kaVy0)
✦ Apple Pencil (2nd Generation): [https://amzn.to/2JoHy4y](https://amzn.to/2JoHy4y)
✦ Yeti Microphone: [https://amzn.to/37oRNOq](https://amzn.to/37oRNOq)
✦ Rode Boom Arm: [https://amzn.to/3lnEKCb](https://amzn.to/3lnEKCb)
✦ Blue Radius II Shock Mount: [https://amzn.to/2JoIfea](https://amzn.to/2JoIfea)
✦ Blue RPop Filter: [https://amzn.to/39rQSiZ](https://amzn.to/39rQSiZ)
✦ Sony WH1000XM3: [https://amzn.to/3moWgHh](https://amzn.to/3moWgHh)
Thank you for watching!
#widgettesting #flutterwidgets #widgets Widget Testing with Flutter](https://i.ytimg.com/vi/7N1qRivtCWI/mqdefault.jpg)

✦ Live Coding: [https://twitch.tv/tadaspetra](https://www.twitch.tv/tadaspetra)
✦ Twitter: [https://twitter.com/tadaspetra](https://twitter.com/tadaspetra)
✦ Chat on Discord: [https://discord.gg/CPwSezC](https://discord.gg/CPwSezC)
✦ Instagram: [https://www.instagram.com/tadaspetra/](https://www.instagram.com/tadaspetra/)
I also do lots of Investing
✦ FREE stock: [https://join.robinhood.com/tadasp2](https://join.robinhood.com/tadasp2)
My Top 5 Books:
✦ Brave New World - Aldous Huxley: [https://amzn.to/2JyaK96](https://amzn.to/2JyaK96)
✦ 1984 - George Orwell: [https://amzn.to/3lmLzUk](https://amzn.to/3lmLzUk)
✦ The Millionaire Fastlane - MJ Demarco: [https://amzn.to/2ViGthn](https://amzn.to/2ViGthn)
✦ The 4-Hour Workweek - Timothy Ferriss: [https://amzn.to/3mnypYD](https://amzn.to/3mnypYD)
✦ Homo Deus - Yuval Noah Harari: [https://amzn.to/2VlFRYe](https://amzn.to/2VlFRYe)
Youtube Gear
✦ MacBook Pro 16 inch: [https://amzn.to/3qe4MeF](https://amzn.to/3qe4MeF)
✦ MX Master 3 Mouse: [https://amzn.to/2VlkZQS](https://amzn.to/2VlkZQS)
✦ Canon Rebel SL3: [https://amzn.to/2ViIfPv](https://amzn.to/2ViIfPv)
✦ Hiearcool USB Hub: [https://amzn.to/3llsIsP](https://amzn.to/3llsIsP)
✦ iPad Pro 12.9 (3rd Generation): [https://amzn.to/36kaVy0](https://amzn.to/36kaVy0)
✦ Apple Pencil (2nd Generation): [https://amzn.to/2JoHy4y](https://amzn.to/2JoHy4y)
✦ Yeti Microphone: [https://amzn.to/37oRNOq](https://amzn.to/37oRNOq)
✦ Rode Boom Arm: [https://amzn.to/3lnEKCb](https://amzn.to/3lnEKCb)
✦ Blue Radius II Shock Mount: [https://amzn.to/2JoIfea](https://amzn.to/2JoIfea)
✦ Blue RPop Filter: [https://amzn.to/39rQSiZ](https://amzn.to/39rQSiZ)
✦ Sony WH1000XM3: [https://amzn.to/3moWgHh](https://amzn.to/3moWgHh)
Thank you for watching!
#codingfundamentals #codingbestpractices #bestpractices Coding Best Practices](https://i.ytimg.com/vi/7dGfe8eJDSU/mqdefault.jpg)





