Fresh Beginning
  • Home
  • Portfolio
  • My Clothing Shop
  • Etsy Clothing Store
  • Buy Me A Coffee
  • Patreon
  • Speaking
  • Reading
  • About Me
  • Contact Me
Subscribe

unit test

A collection of 3 posts
Mocking URLProtocol and Unit Testing the Network Stack on iOS using Swift
unit test

Mocking URLProtocol and Unit Testing the Network Stack on iOS using Swift

In the previous post, we learned how to write a reliable and scalable network stack on the iOS platform. However, that is just the beginning. After writing the implementation, we also need to unit test it to make sure it's stable with all the business logic and unintended changes do
May 4, 2023 6 min read
Xcode 13 Introduces a New Way for Handling Expected Unit Test Failures
unit test

Xcode 13 Introduces a New Way for Handling Expected Unit Test Failures

In my previous blog post, I wrote about using a couple of ways to either suppress or skip expected test failures. In Xcode 12.5, Apple introduced a new API XCTExpectFailure to provide a better way to handle expected (And hopefully temporary and fixable in near-future) test failures. In todays'
Jan 31, 2022 7 min read
Handling Expected Unit Test Failures in Swift and Xcode
XCTest

Handling Expected Unit Test Failures in Swift and Xcode

Xcode allows developers to make unit testing efficient and free from noise by skipping certain tests with known failure. There are many cases where engineers want unit tests to effectively catch failing code. But how about those where they know tests will fail, but still want to keep those tests
Jan 31, 2022 6 min read
Fresh Beginning © 2025
Powered by Ghost