Yet Another Swift Blog
  • Home
  • Tips
  • About

Testing

Learn all about unit testing on iOS with Swift.

Testing, Swift

Code Generating Swift Mocks with Sourcery

Learn how to code generate Swift mocks using Sourcery.

Vadim Bulavin Vadim Bulavin 8 min read
Testing

Unit Testing Asynchronous Code in Swift

Learn four techniques of unit testing asynchronous code in Swift: mocking, test before & after, expectations, busy assertion.

Vadim Bulavin Vadim Bulavin 11 min read
Testing, SwiftUI

Testing SwiftUI Views

Explore snapshot testing SwiftUI views: what it is; why it is important; what can we get from it.

Vadim Bulavin Vadim Bulavin 7 min read
Testing

Unit Testing View Controllers and Views in Swift

Let's design a view controller for testability and sharpen our knowledge by writing several unit tests.

Vadim Bulavin Vadim Bulavin 5 min read
Testing

Unit Testing Best Practices on iOS with Swift

Let's learn best practices of iOS unit testing with Swift.

Vadim Bulavin Vadim Bulavin 7 min read
Testing

Swift Asynchronous Unit Testing with Busy Assertion Pattern

Learn how to simplify XCTestExpectation with Busy Assertion pattern.

Vadim Bulavin Vadim Bulavin 4 min read
Testing

Real-World Unit Testing in Swift

This article is an introduction to Swift unit testing. Let's learn why to test, what to test and how to test.

Vadim Bulavin Vadim Bulavin 7 min read
Yet Another Swift Blog by Vadim Bulavin © 2023.
Latest publications Twitter vadymbulavin@gmail.com