Flutter Test Driven Development With Clean Architecture
- Descrição
- Currículo
- FAQ
- Revisões
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 like
1. test()
2. when()
3. expect()
4. verify()
5. verifyNoMoreInteractions()
-
2Create user entityVídeo Aula
-
3Understanding object compare in dartVídeo Aula
-
4Install dartz package and understand Either typeVídeo Aula
-
5Create failure and typedefVídeo Aula
-
6Dart callable call functionVídeo Aula
-
7Done with domain layer usescases create userVídeo Aula
-
8Domain layer usecases get_userVídeo Aula
-
9About domain layersQuestionário
Learn more about domain layer
-
10Understanding testingVídeo Aula
-
11Create test part 1Vídeo Aula
-
12Create test and done with STUB part 2Vídeo Aula
-
13Create test part 3 done with Act and AssertVídeo Aula
-
14Create test part 4 and verifyVídeo Aula
-
15Create test part 5 and run itVídeo Aula
-
16Test summary in text formatTexto
-
17Create test get_usersVídeo Aula
-
18Data layer create user_modelVídeo Aula
-
19CopyWith methodVídeo Aula
-
20Test user modelVídeo Aula
-
21Read json file for user dataVídeo Aula
-
22Run test fromJson, toJson, fromMap, toMapVídeo Aula
-
23Data layer and data sourceVídeo Aula
-
24Data layer and implementation of auth repositoryVídeo Aula