Skip to content
0:00 / 0:00

#flutter#dart#unittesting

Flutter: Add Unit Tests to Your App

Andrea Bizzotto

41K subscribers • 25 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Andrea Bizzotto
  • Linked in the descriptionbizz84/coding-with-flutter-login-demo
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

36K views8 years ago2 recommendations

Mobile developmentTools and practiceTestingFlutter and React Native

Andrea Bizzotto demonstrates how to extract business logic into testable classes and write unit tests in Flutter.

Full source code on GitHub: github.com/bizz84/coding-with-flutter-login-demo Sign up here for more videos: codewithandrea.com/ Flutter & Firebase Udemy Course (with discount code): udemy.com/course/flutter-firebase-build-a-complete-app-for-i… In this video I show how to extract business logic from your apps into testable classes, and write unit tests in Flutter. This is based on my Firebase authentication demo. Highlights: - Intro - Review of TextFormField form validation - Extract email and password validation code into separate classes - Write simple unit tests - Detecting and fixing failing tests Notes: - I'm using the iOS simulator, but you can open the Android emulator and run the same code. - To run the code on the demo, follow the instructions on the project README file to setup your own Firebase instance. If you need any help, just ask in the comments. I'll be happy to help. Feedback and suggestions on new tutorials are very welcome! This code was written with Flutter Beta 0.5.1, and is tested to work with Dart 2. For a more in-depth coverage of unit & widget testing, see my Flutter & Firebase course: codewithandrea.com/courses/flutter-firebase/ Thanks for watching!

Why it's here

2 people recommend this

What people say. Recommended as a helpful guide for learning how to write unit tests in Flutter.

u/boon4376in r/FlutterDev • Recommends

On “What are the best resources for learning intermediate/ advanced flutter?”

…s complex at first.. This is a big topic. There are a lot of resources to improve how you write code. If you do JavaScript backends, I highly recommend this course on TypeScript. It focuses on architecture and design patterns. (TypeScript is pretty similar to Dart). Here is a guide on Test Driven Development and clean architecture with Flutter: [video Here's a guide to unit testing with Flutter: [video Here's an article on Test Driven Development in Flutter: https://itnext.io/tdd-in-flutter-part-1-introduction-to-test-driven-development-c130b9e82f36 This guy has a REALLY great video on test driven development with backend API's [video This is a really fundamental guide for "How t…

u/bizz84in r/FlutterDev • Recommends

Flutter: Add Unit Tests to Your App