Mô tả

As a software developer you must always aspire to write quality code. You must also make sure that any future code you write does not break existing features. Test Driven Development provides you with a great way to implement software. It provides a safety net, which allows you to make changes with confidence. In this course, you will learn how to apply the principles of test driven development in iOS using Swift language.


Let’s check out the contents of the course:


  1. Understanding Test Driven Development

In this section you will learn about the concepts behind Test Driven Development. You will learn why testing is important, when to write unit tests and even misconceptions behind testing in software development.


  1. Types of Testing

In this section you will learn about types of testing. You will learn the differences between unit testing, user interface testing, integration testing, acceptance testing and performance testing.


  1. Writing Your First Unit Test

In this section you will learn how to write your first unit test. We will implement a simple Tip Calculator and write your code using the principles of test driven development. You will learn how using test driven development allows you to architect your app.


  1. Writing UI Tests

In this section you will learn how to write user interface tests. You will learn how to automate your user interface and perform actions on the elements on the screen. You will also learn how to use the PageObject pattern to reuse elements from the screen.


  1. Mocking

In this section you will learn the concept of mocking. You will learn how to create a mocked version of the login service, which will allow the user to continue with their tests without having a dependency on a real login service and network connection.


  1. End to End Testing

In this section you will learn how to perform end to end integration testing. You will learn how to invoke a real network service and make sure that all components of the app are working correctly together.


  1. Project Time - Quiz App

Finally, you are going to put all your skills to test by implementing a Quiz App in SwiftUI using the principles of test driven development. You will start by testing the core domain and then move on to write user interface tests.


Who is this course for?

  • Developers interested in learning about writing great software based on the principles of test driven development.

  • Developers interested in learning about the application domain using unit tests.

  • Developers who want to educate themselves on how to architect an application using test driven development.

  • Developers who want to take their skills to the next level


I had so much fun in creating this course and I really hope you enjoy it too.

Thanks and let’s start coding!

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

Yêu cầu

Nội dung khoá học

10 sections

Introduction

4 lectures
Introduction
02:45
Prerequisites
01:30
Resource: MVVM Design Pattern
00:02
Exercise Files
01:02

Understanding Test Driven Development?

6 lectures
What is TDD?
03:14
Why should you use TDD?
03:45
What you should test and what you should not?
04:07
When should you use TDD?
03:34
Common misconceptions about TDD?
04:00
Rules of writing good test
03:55

Tip Calculator - Writing Your First Unit Test

5 lectures
Understanding the App
02:50
Setting Up Unit Test Project
07:45
Implementing Test to Calculate Tip
10:08
Writing Test to Check for Thrown Exceptions
09:24
Integrating TipCalculator to the SwiftUI App
08:41

Tip Calculator - Writing UI Tests

6 lectures
Setting Up User Interface Test Project in Xcode
02:42
Writing Unit Testing When Content View is Shown
15:57
Refactoring Tests
05:18
Writing UI Tests For Calculating Tip
08:26
Writing UI Tests for Invalid Input for Total
09:32
Implementing PageObject Pattern
07:03

Recording User Interface Tests and Code Coverage

3 lectures
How to Record a UI Test Using the Recording Tool?
05:08
What is Code Coverage?
02:23
Code Coverage Demo
07:01

Mocking

7 lectures
What is Mocking?
03:53
Understanding the Starter Project
07:18
Writing Test to Validate Required Fields
07:29
Writing Test Confirm User Navigation to Dashboard Upon Authentication
07:37
Implementing MockedWebService
16:06
Writing Test to Display Message for Invalid Credentials
03:48
Implementing PageObjects Design Pattern
06:10

Todo App - End to End Testing

7 lectures
Tour of the App
05:46
Resource: Core Data Debug Tag
00:09
Writing Test to Save Task to Database
10:05
Deleting App Before Running Each Test Using Springboard
08:53
Writing Test to Check Duplicate Task Titles are Not Allowed
04:39
Writing Test to Make Sure Task is Deleted Successfully
05:43
Writing Test to Make Sure Updating Task Favorite Works as Expected
06:48

Quiz App - Unit Testing the Domain

5 lectures
Architecture Overview
04:08
Understanding Starter Project and Quiz Stories
03:18
Writing Test to Make Sure Quiz Points are Calculated Correctly
12:56
Writing Test to Grade Exam Based on Score
05:57
Write Test to Grade Exam Based on User's Submission
11:28

Quiz App - User Interface Testing

4 lectures
Writing Test to Display Available List of Quizzes
14:30
Writing Test to Navigate to Questions Screen
04:09
Writing Test to Make Sure Error Message is Displayed When No Choices Selected
06:21
Writing Test to Display Grade for the User
11:37

Conclusion

2 lectures
Next Steps
03:13
Bonus Lecture
00:07

Đá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.