Available Now: Test-Driven Development in Swift with SwiftUI and Combine

mokacoding

unit and acceptance testing, automation, productivity
Archive Tags About Subscribe

Posts tagged "combine"

When to test a @Published property using sink

Sun Oct 17 2021 -Testing -Swift -Combine -XCTest

Swift @Published properties come with an associated Combine Publisher that emits values over time. This free XCTest tutorial explains when to write a unit test that accesses the property directly and when it's instead necessary to subscribe to it using the sink operator.

Unit Testing Combine Publisher Cheatsheet

Thu Feb 11 2021 -Testing -Combine -Xcode -XCTest

Snippets to test the behavior of Combine Publishers in XCTest ready to copy and paste into Xcode

mokacoding

Hi I'm Gio I write here semi-regularly on software testing and TDD, productivity, and iOS development.

Get in touch if you're interested in working together.

AltStyle によって変換されたページ (->オリジナル) /