What is @testable Annotation in Swift?
Hallo velden en bergen, Leo hier. Today we will talk about @testable when testing in Swift. Before diving into Swift per se, let’s briefly discuss another topic. Lately, I’ve been thinking a lot about how we judge other people’s tastes. I’ve seen in several situations when someone says he likes reality shows like Big Brother, […]
Unit Test Expected Failures in Swift
Hallo jassen en jurken, Leo hier. Today we will explore how to create expected failures in unit tests using pure Swift. I posted two questions on my LinkedIn about soft and hard skills. I’m opinionated about this matter and I wanted to hear from the community what your thoughts are. I know that some people […]
How to Start iOS Development Career Part 5 – Programmatically Testing your Code
Hallo allemaal, Leo hier. The topic today is how to Programmatically Testing your Code. This is the fifth part of my series “How to start iOS Development Career”. If you didn’t read the introduction, Part 2, Part 3 and Part 4 I would strongly suggest doing so. If you came here, you probably have everything […]
How to Unit Test Notification Center in Swift
Hallo honden and katten, Leo hier. Today’s topic is how to Unit Test Notification Center in Swift and how to make your life easier in terms of maintainability of your code that use Notification Center. We will continue to talk about unit testing. Since iOS 2, we iOS developers have access to this dispatch center. […]
How to Write Unit Tests for UIButton with XCTest in Swift
Hallo vrienden, Leo hier. Today we will discuss how to write unit tests for UIButton with XCtest in Swift and why you should learn that to improve your code stability and maintainability. This is the first article of a series on how to test UI with unit tests. I know, I know… this is a […]
Unit Testing UIViewController Dismiss Closure in Swift
Hallo alle mensen, Leo Hier. The topic today is unit testing UIViewController dismiss closure in your Swift code. Today we will attack some tricky unit testing code. First, let’s talk about testing UIViewController with unit tests. I’m very akin to testing everything. Literally. I think we should have unit tests for everything. Every little piece of code […]
Best ways to do Equatable in Unit Tests using Swift
Hallo keizerinnen en keizers, Leo hier. The topic today is various ways to do equatable in Unit Tests using Swift. Today we will explore a somewhat common problem when testing code in Swift/iOS development. I can’t stress enough the fact we all should be doing tests, this is a real game changer for any developer. […]