How to Unit Test Notification Center in Swift

this is the image for How to Unit Test Notification Center in Swift image example

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

Unit Tests for UIButton image example

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

Equatable in Unit Tests title example image

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. […]