Flutter Testing Tutorial: Unit Test, TDD and Widget Test

preview_player
Показать описание
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 YouTube's Super Thanks (⬆ Button labeled THANKS above ⬆)

🔔 *Subscribe:*

Subscribe to my channel to see more videos like this:

📖 *Useful resources:*

- In order to follow this tutorial (go to the no_tests branch):

📖 *Flutter libraries used:*

- This tutorial uses mocktail for mock generation:

🔵 *Follow me:*

Find out about my latest videos and publications:

⏳ *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

---

Рекомендации по теме
Комментарии
Автор

it would be nice if you explain this line of code
`final capture =
verify(() =>
expect(capture[0], ThemeMode.system.index);`

sumitmehra