Flutter Testing Tutorial: Unit Test, TDD and Widget Test

Veröffentlicht am: 04 August 2023
auf dem Kanal: 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...


Auf dieser Seite können Sie das Online-Video Flutter Testing Tutorial: Unit Test, TDD and Widget Test mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer David Serrano 04 August 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 3,101 Mal angesehen und es wurde von 63 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!