Mô tả

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()

Bạn sẽ học được gì

Yêu cầu

Nội dung khoá học

10 sections

Introduction

1 lectures
Introduction
04:43

Understand Dartz Type Either and Architecture Layer

8 lectures
Create user entity
06:17
Understanding object compare in dart
12:51
Install dartz package and understand Either type
11:03
Create failure and typedef
11:08
Dart callable call function
12:10
Done with domain layer usescases create user
04:15
Domain layer usecases get_user
04:53
About domain layers
7 questions

Create and understand test

8 lectures
Understanding testing
07:59
Create test part 1
15:59
Create test and done with STUB part 2
07:58
Create test part 3 done with Act and Assert
03:48
Create test part 4 and verify
04:22
Create test part 5 and run it
03:31
Test summary in text format
00:00
Create test get_users
06:24

Data layer and test

7 lectures
Data layer create user_model
11:07
CopyWith method
06:18
Test user model
04:08
Read json file for user data
05:15
Run test fromJson, toJson, fromMap, toMap
15:52
Data layer and data source
15:19
Data layer and implementation of auth repository
08:14

Repository and authentication

5 lectures
Authentication repository implementation
14:13
Authentication repository implementation test 2
09:12
Authentication repository implementation exception test 3
09:21
Done test API Exception
12:05
Authentication remote data source implementation test
06:29

Http layer and test

5 lectures
Http client and prepare test part 1
13:19
Http post request 200, 201 and 400 code test
19:08
Http get request test
17:21
Resources not found test completed
05:29
Presentation layer bloc and usecases
19:20

Cubit package and test

5 lectures
Cubit and usecase
09:51
Cubit authentication test
05:19
Cubit and bloc test pass
11:29
Cubit create user pass
04:09
Cubit get users test pass
05:12

Dependency injection

2 lectures
Inject dependencies with get_it and see the connection of all layers
13:25
More explanations of GetIt( skippable)
04:21

Create user and test

2 lectures
Create the app and ui
20:21
Create our first user in the app
17:00

About Actual App

1 lectures
Real app integration
00:49

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.