|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/flutter-test-driven-development-with-clean-architecture/
课程评论:没有评论
**课程名称:** Flutter Test Driven Development With Clean Architecture **课程概述:** 本课程将深入探讨测试驱动开发(TDD)在 Flutter 应用开发中的应用。通过构建一个示例应用程序,您将学习如何编写单元测试、API 模拟测试、Firebase API 模拟测试,以及如何处理正确的和错误的服务器响应。 **核心内容:** * **Test Driven Development (TDD) 介绍:** 学习 TDD 的概念、起源(敏捷宣言和极限编程),以及它如何通过先编写测试、再编写代码的方式来驱动软件开发,从而生成优化且具有长期韧性的代码。 * **TDD 实践:** 掌握为每个功能编写小型测试用例,并在测试失败时才修改或编写新代码的迭代过程。 * **Clean Architecture 与 BLoC/Provider:** 学习使用 BLoC 和 Provider 模式构建正确的 Flutter 应用文件夹结构,并将其与 Clean Architecture 相结合。 * **状态管理与测试:** 了解在测试过程中如何使用 BLoC 和 Cubit 进行状态管理。 * **Flutter 测试工具:** 熟练掌握 `flutter_test` 包中的核心函数,包括 `test()`、`when()`、`expect()`、`verify()` 和 `verifyNoMoreInteractions()`。 * **全面测试覆盖:** 课程将涵盖约 100 个测试用例,确保您能应对各种场景。 **学习目标:** 完成本课程后,您将能够: * 理解并实践 TDD 的核心原则。 * 使用 TDD 方法开发健壮的 Flutter 应用程序。 * 熟练运用 BLoC 和 Provider 构建符合 Clean Architecture 的 Flutter 项目。 * 有效地进行 API 和 Firebase API 的模拟测试。 * 掌握 Flutter 测试的关键工具和技术。
In this course, we will cover how to do test driven development. We will also build a dummy app to learn about it in depth. We will cover almost 100 tests which will involve api mock testing, firebase api mock testing, build correct http response, learn how to deal with incorrect or wrong response from the server.What is Test Driven Development (TDD)?In layman's terms, Test Driven Development (TDD) is a software development practice that focuses on creating unit test cases before developing the actual code. It is an iterative approach combining programming, unit test creation, and refactoring.The TDD approach originates from the Agile manifesto principles and Extreme programming.As the name suggests, the test process drives software development.Moreover, it's a structuring practice that enables developers and testers to obtain optimized code that proves resilient in the long term.In TDD, developers create small test cases for every feature based on their initial understanding. The primary intention of this technique is to modify or write new code only if the tests fail. This prevents duplication of test scripts.Apart from that you will learn correct folder structure of your using BLoC and Provider with clean architecture aspect.Throughout the testing we will use BLoC & Cubit and show how to manage states during testings.We will cover how to use the flutter_test package and all the functions in like1. test()2. when()3. expect()4. verify()5. verifyNoMoreInteractions()