Flutter Testing Tutorial: Unit Test, TDD and Widget Test

Pubblicato il: 04 agosto 2023
sul canale di: David Serrano
3,101
63

Welcome to this Flutter testing tutorial where we deep-dive into Flutter tests and Dart testing. We start with the basics of unit tests in Flutter, then I will give you an introduction to Test-Driven Development or TDD, and finally we will see how to test Flutter widgets with some widget tests. By the end of this tutorial you should already have the fundamentals of writing your own unit tests and widget tests for Dart and Flutter, as well as having seen the basics of TDD so you can make the decision to use it or not.

☺ Support the channel:

Any donation is gratefully received, thank you!

Via my website: https://davidserrano.io/sponsor
Via YouTube's Super Thanks (⬆ Button labeled THANKS above ⬆)

🔔 Subscribe:

Subscribe to my channel to see more videos like this:

http://www.youtube.com/@david-serrano...

📖 Useful resources:

In order to follow this tutorial (go to the no_tests branch):
https://github.com/svprdga/Flutter-Mo...

📖 Flutter libraries used:

This tutorial uses mocktail for mock generation:
https://pub.dev/packages/mocktail

🔵 Follow me:

Find out about my latest videos and publications:

https://davidserrano.io/
  / davidserranoio  
https://hashnode.com/@svprdga
https://dev.to/svprdga
https://mastodon.social/@svprdga

⏳ Timecodes:

00:00 - Introduction
01:25 - Why testing exist?
03:17 - Setup
05:01 - Unit Tests
13:06 - Test Driven Development (TDD)
18:11 - Widget Tests
25:36 - Final words



---



Cover mecha: Photo by Romin Tabuada: https://www.pexels.com/photo/large-hu...


In questa pagina del sito puoi guardare il video online Flutter Testing Tutorial: Unit Test, TDD and Widget Test della durata di ore minuti seconda in buona qualità , che l'utente ha caricato David Serrano 04 agosto 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,101 volte e gli è piaciuto 63 spettatori. Buona visione!