Lightweight dependency injection and unit testing using async functions
Explores using Swift's async/await for lightweight dependency injection and easier unit testing of asynchronous networking code.
Explores using Swift's async/await for lightweight dependency injection and easier unit testing of asynchronous networking code.
A guide to writing unit tests for Swift code that uses async/await, covering asynchronous test methods and error handling.
Explains when to directly access vs. subscribe to Swift @Published properties in unit tests, focusing on testing initial values versus value changes over time.
A guide to attaching a Core Data SQLite database file to a failing unit test in Xcode for debugging purposes.
A guide to setting up isolated Core Data unit tests using a SQLite persistent store for reliable, production-like testing.
A guide to writing unit tests for SwiftUI apps by decoupling layout from logic, enabling testable code without relying solely on UI previews.
A tutorial on implementing end-to-end (E2E) testing in Blazor applications using the Playwright automation framework for .NET.
A tutorial on setting up and writing unit tests for Blazor components using bUnit, with an introduction to end-to-end testing concepts.
Explains how AutoFixture simplifies unit test setup and maintenance by automating test fixture creation, reducing coupling to application code.
A guide to writing unit tests for Swift async/await code using XCTest in Xcode 13, comparing it to older callback patterns.
A guide to writing deterministic Swift tests for date comparisons by avoiding reliance on the system clock and injecting reference dates.
Discusses code coverage debates in frontend testing, focusing on React, Jest, and Cypress for unit and integration tests.
A tutorial on writing declarative unit tests for Vapor server-side Swift applications using the Spec library.
Learn how to use Scenario Builders in Swift to simplify unit test setup for complex object networks, making arrange phases cleaner.
A developer shares the story of debugging a tricky PHP unit test failure caused by a single missing character (an equals sign).
A guide to Test Driven Development (TDD) in Python, demonstrating the process with a practical example of creating an `is_float` function.
A guide to unit testing Blazor UI components using the bUnit framework for faster, isolated testing without a browser.
A cheat sheet for writing unit tests for Swift Combine Publishers in Xcode, including code snippets for common assertion scenarios.
A guide to writing and running tests for a Python package using pytest, covering white box testing and project structure.
A developer's reflection on how writing a test for a simple one-line bug fix can become a complex, time-consuming task.