Write unit test cases for API in swift | XCTest | Hindi tutorial
Code Cat
0:00 / 0:00
Write unit test cases for API in swift | XCTest | Hindi tutorial
34 458 просмотров · 5 лет назад
Code Cat
17,1 тыс. подписчиков
34 458 просмотров · 5 лет назад
In this session of writing a unit test in swift, we will learn how to write API test cases in swift. Writing API test cases in swift is not as hard as you think and this session is all about showing you how easy it is to write API test cases for ios project. In this API unit testing tutorial, we will also cover what is black box testing in swift along with its advantage
Before you see this part it's very important to understand why do you need a test case in your project and in part 1 of the video I have explained it in detail why writing test cases helps you to improve the quality of your code.
This API test case swift tutorial will cover all your basic questions on how to write test cases for API in swift along with the integration tests
Given are the chapters covered in this video
0:00 Introduction
0:40 topic for today's video
0:59 scenarios for API test cases
1:37 why are we re-testing invalid use case
2:25 black-box test cases
3:16 write test cases for api
7:36 need for expectations in async test cases
8:02 writing expectations for API test cases
8:54 failing expectation
9:52 covering other scenarios for login API
11:26 writing black box test cases
15:06 common questions for black box testing
17:03 integration test for login handler
22:23 advantage of unit and integration tests
24:02 like share and subscribe :)
Link to part 1 video: • Why do we need test case in swift | xctest...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✅ Subscribe to the channel and stay ahead of everyone by following the right way for writing clean code in swift. 🔥🔥🔥🔥🔥
🔗Click on the link to subscribe: https://www.youtube.com/c/codecat?sub...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------------------------------------------------------------------
📥 Download the source code from
Github: https://github.com/codecat15/Youtube-...
Google Drive: https://drive.google.com/file/d/1L-AB...
-----------------------------------------------------------------------------------------------------------------------
############################################
Connect with me on social media
📧: codecat15@gmail.com
🐦: / codecat15
Facebook: / code.cat.792
Github: https://github.com/codecat15
###########################################
#apiTestCase #testCasesInSwift #howToWriteAPITestCaseSwift