Getting Started With Unit Testing | XCTest | Swift

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 116

  • @felipenka
    @felipenka 4 роки тому +6

    you had me with "Real World ....", there are thousands of videos with iOS content, but it is always the same and with very basic examples, it is what the community lacked, more content creators who gave real examples , with context. And with your charisma and way of teaching it becomes very easy to understand everything. I discovered your channel recently, and you're already one of my favorite swift devs! I wish you success in everything you do !!!

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +2

      Thanks Felipe, I really appreciate it!! I'm definitely going to be focusing on real world examples more often, so hopefully you continue to enjoy the content that's on its way

  • @TheHy6xD
    @TheHy6xD 4 роки тому +6

    I love your IDE setup and theme, I remember those days a few years ago when I just was learning from you and now I work full-time. Thank you, Kyle!

  • @SudhanshuSrivastavaIndia
    @SudhanshuSrivastavaIndia 4 роки тому +1

    I think this is the most detailed and practical video on Unit Tests.. Thanks Kilo

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +1

      Haha Glad you liked it!!

  • @mikaelacaron4694
    @mikaelacaron4694 4 роки тому +3

    Great tutorial Kyle! I just started learning Unit Testing. Loved the real world examples!

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Hahaha Glad you liked it Mikaela. Also hmu if there are topics that you want covered. You've been following for a while now and i would like to return the favor of you supporting the channel

  • @sneakyfoxstudio
    @sneakyfoxstudio 4 роки тому +5

    I was just learning this last night just to finish my project! haha good timing!

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Haha crazy timing!! Hopefully this video helped

  • @stephinline
    @stephinline 4 роки тому +17

    Just when I needed this! 🙌🏽 Thanks for the great content as usual.

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Thanks!! I’m glad that I could help!! 😁

  • @BharathGuntupalli
    @BharathGuntupalli 9 місяців тому

    Comprehensive at the same time more detailed. Thanks for making this video, this helped me a lot :-)🙂

  • @AviramNetanel
    @AviramNetanel 2 роки тому

    great video ! very helpful!

  • @matthew11092
    @matthew11092 2 роки тому

    Great introduction to XCTest! Thank you.

  • @faizanawaz75
    @faizanawaz75 2 роки тому

    Thank you so much. You made my day by explaining it this easy way.

  • @immmax
    @immmax 7 місяців тому

    Thanks for this video. Good clear way to dive into testing. 👍

  • @lukassbeataddicts
    @lukassbeataddicts 3 роки тому

    I laughed so hard when you said very sexy. Made my day bro. You made horror of unit testing enjoyable.

  • @americo770602
    @americo770602 3 роки тому

    Thank you Kilo Loco, it is useful video. Great job!

  • @AmitThakur-eg8kb
    @AmitThakur-eg8kb 4 роки тому

    OMG it's amazing kilo, i was deperately waiting for such type of video. Thanks man.

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Haha glad that i could help

  • @MultiSimransingh
    @MultiSimransingh 4 роки тому +5

    9:21 Option + shift + Enter

  • @amari9773
    @amari9773 3 роки тому

    Learned a lot from this video. Much appreciated, Kilo.

  • @sorinmiroiu9404
    @sorinmiroiu9404 4 роки тому

    Very cool video Kilo. When i heard the words "reusable code" i thought to myself "now, that's sexy". Keep up the good work and i hope you have a great experience at your new job. :D

  • @chuyinreyes
    @chuyinreyes 4 роки тому

    I love how u explain everything. Tks for the tips bro

  • @sathishkumardsk
    @sathishkumardsk 4 роки тому

    Great!. Your codes are clean and simple.Thanks for sharing your knowledge.Keep going.

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Glad that you liked it 😁

  • @bdaralan
    @bdaralan 4 роки тому +2

    Learnt capture error in assert throw and how to check code coverage. Thank you. 😃

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +1

      My pleasure!! Hopefully I can keep providing you more value in the future

  • @FNMonsters
    @FNMonsters 4 роки тому

    Just earned my sub. Very nice. I look forward to watching and learning more of your material. Thank you and God bless.

  • @brandonb6175
    @brandonb6175 4 роки тому

    This is an excellent video Kilo!

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Thanks!! I'm glad that you liked it! Now make sure you start adding in tests to your project 😉

  • @xtcrpk9316
    @xtcrpk9316 4 роки тому +5

    The second part of testing video would be great! With some more specific use cases and real life examples (more complex, mb?) But yep, thanks for the video, its just in time!

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +2

      I'll definitely do more on testing. Looking to get into other real world examples

    • @sashamakedonskii
      @sashamakedonskii 4 роки тому

      @@Kilo_Loco It will be nice to test network calls 👍🏾

  • @JasonMitchellAZ
    @JasonMitchellAZ 4 роки тому

    Awesome walkthrough for starting out unit testing. You covered a lot of great stuff from start to finish in this video.

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Haha glad I could help 😁

  • @finalpets
    @finalpets 4 роки тому +7

    Love it!, maybe UITest and one more UnitTest but with MockUp Server, will be more realistic because every APP has a network request and its hard to Unit Test that Layer, thanks!!

  • @subinkk1000
    @subinkk1000 2 роки тому

    Very informative 👍👍

  • @ignaciobrambilla7126
    @ignaciobrambilla7126 2 роки тому

    Great video! Thanks!!

  • @emmanuelecorporente
    @emmanuelecorporente 4 роки тому +1

    just great !

  • @JuanGarcia-ok4tq
    @JuanGarcia-ok4tq 4 роки тому

    Thanks! Nice video. Hopping to watch more videos regarding Unit Test 🙂

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +1

      I can definitely go deeper with Unit Testing

  • @LittleTanner3
    @LittleTanner3 4 роки тому

    This is the best intro to unit testing video! Could you please create a video on using a page view controller, all the tutorials I have seen are really old.

  • @ianrust3785
    @ianrust3785 3 роки тому

    Thanks, very clear and practical.

  • @sudheerlogicloop9590
    @sudheerlogicloop9590 4 роки тому +1

    Great video, thank you, i want UITest Cases also in next video

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +2

      I will add UITests to the list of topics

  • @lelelelelelelleees
    @lelelelelelelleees 3 роки тому

    Amazing video! Thanks ❤️

  • @Ni7ram
    @Ni7ram 4 роки тому

    amazing brother! you won a subscriber

  • @nikolakrstevski3339
    @nikolakrstevski3339 4 роки тому

    That was great! Thank you very much!

  • @kpsv7702
    @kpsv7702 2 роки тому

    Nicely explained brother. Please explain autolayout with different scenarios.

  • @DipperSlipper
    @DipperSlipper 4 роки тому +1

    Hi Kyle, I enrolled for the membership and waiting for the invitation to the awesome slack community. :)

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +1

      Please DM your email and I'll double check

  • @Denis-pq9kq
    @Denis-pq9kq 4 роки тому

    Woooow awesome man!
    Do you have any plans for a UI testing video?

  • @hustlas4ever
    @hustlas4ever 4 роки тому

    Thank you!

  • @Jock3R87
    @Jock3R87 4 роки тому +1

    Mate firstly many congrats on your new job... any thoughts on Protocol oriented programming using Dependency injections ... which is in demand

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +1

      Yes, I think that protocol oriented programming is a very important concept, especially for making things easier to test. I actually put together a course on POP kilo-loco.teachable.com/p/pop

    • @Jock3R87
      @Jock3R87 4 роки тому

      Kilo Loco mate I am UK based so not sure how can I enroll for this...

  • @DhavalHNena
    @DhavalHNena 3 роки тому

    Brilliant! BAM..

  • @ThuongNguyenManh
    @ThuongNguyenManh 3 роки тому

    Love the video and I love your IDE setup + theme. But I don't know how to configure my IDE like that
    As control + shift + enter does not work on my side 😫

  • @willasaskara
    @willasaskara 4 роки тому

    thanks!

  • @telbinX
    @telbinX 4 роки тому

    In some TDD approaches "validation" will be called as "sut" - system under test. Sometimes it is convenient to see a system under test in any test file. But anyway thanks for those examples, true help for beginners in unit tests

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +1

      Yea, I considered using the word sut, but I figured it would cause more confusion than simply giving it the name “validation”

  • @DipperSlipper
    @DipperSlipper 4 роки тому

    9:19 Control+Shift+Enter does not work. Can you please tell me the name of the shortcut so that I can configure in Xcode keybinding preference?

    • @hurshhazari2300
      @hurshhazari2300 4 роки тому +2

      option+Shift+Enter

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +1

      I think @Hursh Hazari is correct. There are lists of shortcuts online though

    • @DipperSlipper
      @DipperSlipper 4 роки тому

      Thanks @Hursh and @Kilo

  • @diakojafari2107
    @diakojafari2107 3 роки тому

    thanks

  • @kollokvium
    @kollokvium 4 роки тому

    The color scheme is super juicy

  • @denniswhite6779
    @denniswhite6779 4 роки тому

    any chance of you covering more in unit testing but with mocking a protocol (interface)?

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Yes!! More unit testing is on its way 😉

  • @wesleybritob
    @wesleybritob 4 роки тому

    awesome

  • @chimeiwangliang
    @chimeiwangliang 4 роки тому

    I was just watching John Sundell’s lecture on unit testing, what a coincidence!

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Haha, pretty crazy since we just had that podcast we recorded earlier this week

  • @ubaidillahahmad25
    @ubaidillahahmad25 3 роки тому

    thank you! (sorry this is the 101st comments haha)

  • @TheFloydPinkus
    @TheFloydPinkus 4 роки тому

    Another great video, we learn so much.
    Just one thing I was missing - that KIlo Loco talk you do in a lot of your videos. You we're a bit too serious this one :)

  • @БЕОГРАДСКАБАНДА
    @БЕОГРАДСКАБАНДА 4 роки тому

    How did you set xcode elements to be purple? Looks nice!

    • @macasasa2009
      @macasasa2009 4 роки тому +1

      This is actually system preferences. Go to System preferences -> General -> Accent colour.

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +1

      Yes, this is part of the operating system and @Nikolay Ukolov is explains it perfectly

    • @nizz4m
      @nizz4m 4 роки тому +1

      Its Kilo Loco official color

  • @saeedalobidi4195
    @saeedalobidi4195 4 роки тому

    Thank u😁

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Thank YOU for watching 😁

  • @prahladreddy6839
    @prahladreddy6839 4 роки тому

    Hi kilo, can you make more n more videos on unit testing please

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Absolutely! Which aspects of unit testing are you interested in?

  • @villagelove6504
    @villagelove6504 4 роки тому

    Could you please make video on "How to write test cases for higher order functions or closures".

  • @galahador
    @galahador 4 роки тому

    Very nice!!

  • @666MrGamer
    @666MrGamer 4 роки тому

    Nice video! Definitely helpful for beginners and a great starting point. Just a suggestion - I would make the XCTAssertTrue(username.count == 20) change to username.count >= 20 that way the test is less restrictive and does not fail for even longer usernames. Also I think testing the expectedError description is redundant. Since the above XCTAssertEqual will only pass when the error and expected error are of the same type it implies that the descriptions will be the same. I would probably just check it against a struct that keeps hold of all the app messages and test it against that. That way we test if we have the correct message for each error.

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +1

      Thanks for the tips, I appreciate them 😊 Yea it definitely would have been better to do >= 20 to future proof it a little more. As for the error description, it definitely is redundant, but I thought it would be a nice way to show how to chip away at the coverage. Also, I think there are instances when things like this could actually be useful due to inconsistencies caused by conformance/inheritance

  • @am13476
    @am13476 4 роки тому

    Can you create more videos about Unit Testing, especially about API testing, network calls etc

  • @sathishkumardsk
    @sathishkumardsk 4 роки тому

    Hey can you do a video about NSOperationQueue?

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +1

      Yes I most certainly can!! It’s on its way soon 😉

  • @Timisenman
    @Timisenman 3 роки тому

    Too damn good

  • @jakubgawecki4264
    @jakubgawecki4264 3 роки тому

    Hey guys. I am still in the phase of getting to know unit testing. Can anyone explain to me what was the purpose of creating methods, then checking them in a simulator, and then, after all, writing tests. Should tests not be done first? What I mean is, if we testing in a simulator first, what is the purpose of further testing in a Unit testing case? Thanks!

  • @denisp.7850
    @denisp.7850 4 роки тому +1

    thank you, Kilo 🤛
    btw is it me or there's something wrong with the sound? it seems to be shifted a bit to the right.

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Hmmm I didn’t notice it but I will definitely try to be more vigilant in the future to make sure this doesn’t pop up

  • @jessie5096
    @jessie5096 3 роки тому

    how to unit test without the simulator show up and running? Thanks

  • @javedsiddique6016
    @javedsiddique6016 4 роки тому

    hi I want tutorial on generics like we have. function with parameter as sturture object and as per tht when we call function it should parse the data as per the type we want do database or some other functions as per that structure type we want

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому

      Great topic to cover. Thanks for the suggestions

  • @shanthl1150
    @shanthl1150 4 роки тому

    suprbbbb

  • @multitudes389
    @multitudes389 4 роки тому

    We don’t wanna be in the tutorial trap right? Now there is plenty to do 😁👍

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +1

      Absolutely! Action is where its at

  • @harshhungund5556
    @harshhungund5556 3 роки тому

    Great tutorial Kyle. The best to get started on Unit Testing with practical scenario example. Request you to please make one on UI testing as well. If already made then can you please share the link of that video 👍

  • @ClutchKillers
    @ClutchKillers 2 роки тому

    "No such module

  • @SOFYSoOo
    @SOFYSoOo 4 роки тому

    CI/CD please :D

    • @Kilo_Loco
      @Kilo_Loco  4 роки тому +1

      Absolutely! Some good stuff is on its way

  • @alexpascal5403
    @alexpascal5403 Рік тому

    PETER PULLER PETER PULLER.
    MY SISTERS A PETER PULLER PETER PULLER.
    SHE PULLS PETERS.

  • @GorillaDev417
    @GorillaDev417 2 роки тому

    Great content but can’t lie…it’s a bit awkward and cringey using the term sexy during your tutorial bro 🤷🏽

  • @hardipgajera2316
    @hardipgajera2316 4 роки тому

    I hate when you repete sexy-sexy