What is unit testing in swift or how to write unit test cases in swift has been a question for beginners and sometimes even experienced swift developers, in this ios testing tutorial we will cover in details as to why unit testing is important and how to write unit tests in swift.
Write test case in swift project to make sure that you have covered all the required use cases of your module, this video also talks about the difference between unit test vs integration test and covers the detail from an interview perspective.
Given are the chapters covered in this video
0:00 introduction
0:49 topics covered in this video
1:01 what are unit tests and why do we need them?
1:17 unit testing codecat15 example
4:20 responsibility of dev
5:13 types of test cases
7:03 demo
7:11 code walkthrough
8:32 walkthrough of a test class
10:21 creating a test class
11:23 how to write a test function
17:10 run all the tests at once
17:39 test first approach
20:12 impact on test cases due to code change
21:22 test cases are proof that our code works
21:56 what is code coverage
24:03 pending work for next session
24:16 be honest while writing a test case
Link of decomposition video: • Decomposing Model view controller iOS (MVC...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✅ 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/1PwLN...
----------------------------------------------------------------------------------------------------------------------
############################################
Connect with me on social media
📧: codecat15@gmail.com
🐦: / codecat15
Facebook: / code.cat.792
Github: https://github.com/codecat15
###########################################
#whatIsTestCase #unitTestingInSwift #howToWriteTestCaseInSwift
In questa pagina del sito puoi guardare il video online Why do we need test case in swift | xctest | unit testing | code coverage della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Code Cat 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 29,444 volte e gli è piaciuto 833 spettatori. Buona visione!