Flutter Dev Series Part 6: Unit Testing
? If you haven't watched the previous (5th) part of this multi-part #FlutterDev series yet, I highly encourage you to first here: https://www.youtube.com/watch?v=Vf_7eAhhvN4
⚠️ As mentioned in the video, please pull down the latest changes in the previous part's branch first since I recently pushed out some changes (i.e. I mostly added an API repository class for testability/mockability/scalability) that are needed for this current part (and beyond): https://github.com/DaveNOTDavid/dnd_headlines/commits/flutter-tutorial-part-5
?♂️ For this sixth part, we'll be diving into #FlutterUnitTesting! To be exact, we'll be testing some external dependencies as well as some of our functions' logic to help mitigate breaking changes as you'd expect. As mentioned throughout the video, please note that we'll be saving mocking (with the Mockito dependency) for the next part of the series instead since mocking external dependencies (i.e. live service calls) via widget testing (unit testing but on widgets) would be more applicable for our use-case with the use of outputting data via widgets.
? * UPDATE (AS OF 1/7/2021) *: Part 7 on using Mockito while widget/unit testing is now published here: https://www.youtube.com/watch?v=XgvLigoYfl8
? Notable links mentioned in the video:
- https://flutter.dev/docs/cookbook/testing/unit/introduction
- https://pub.dev/packages/test
- https://github.com/Salby/newsapi_client/blob/master/test/client_test.dart
?? Follow along as I plan to release a new part with incremental, respective branches in the GitHub repo you can compare your progress against. The sixth-part branch is here: https://github.com/DaveNOTDavid/dnd_headlines/tree/flutter-tutorial-part-6
? Like/subscribe for more
? Site: https://www.davenotdavid.com
? Twitter/X: https://twitter.com/davenotdavid7
?? GitHub: https://github.com/davenotdavid
? LinkedIn: https://www.linkedin.com/in/davenotdavid
? Instagram: https://www.instagram.com/davenotdavid.jpg
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Flutter Dev Series Part 6: Unit Testing», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.