Tests Are The Best Kind Of Documentation
Argues that well-written unit tests serve as the most reliable and up-to-date form of documentation for software code.
Argues that well-written unit tests serve as the most reliable and up-to-date form of documentation for software code.
A guide to unit testing applications that use the RavenDB document database in .NET, covering setup and repository patterns.
A guide to implementing unit testing and UI testing for Swift applications, covering principles, best practices, and a practical case study.
Explains why XCTNSPredicateExpectation is slow for async tests and recommends using Nimble's toEventually for faster, more reliable tests.
Explores strategies for writing unit-testable code within SwiftUI views, separating UI logic from business logic for better verification.
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).