Unit Testing with Mockito in Flutter @tadaspetra
Unit Testing with Mockito in Flutter  @tadaspetra
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 FlutterMy Worries About Artificial IntelligenceIs GetX Dead?Dart Records Hype #shortsWidget Testing with FlutterCoding Best PracticesFlutter 2.5 Recap in 6 MinutesWhy I Dont Use Flutter WebWWDC22 Recap in 12 MinsRiverpod Simplified | Easy State ManagementFlutter Roadmap | How to Learn FlutterAdding A Book | Complete Flutter App #12
Tadas Petra |

Unit Testing with Mockito in Flutter

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER