Using Swift protocols to abstract third party dependencies and improve testability
Explains how to use Swift protocols to abstract third-party dependencies like NSHTTPCookieStorage, improving code testability and isolation.
Explains how to use Swift protocols to abstract third-party dependencies like NSHTTPCookieStorage, improving code testability and isolation.
A guide to using OHHTTPStubs, a Swift library for stubbing network requests in unit tests to make them faster and more reliable.
Explains why network calls are problematic in iOS unit tests and how to decouple from the network using stubs or protocols.
A guide on using the moto library to mock AWS S3 interactions in Python tests, replacing complex boto mocks.
A guide on how to write unit tests for Swift code that uses the delegate pattern for asynchronous operations, using XCTest and the Spy test pattern.
Explains how to use FakeItEasy's auto-initialization feature to automatically inject fake dependencies in unit tests, reducing boilerplate code.
A tutorial on testing asynchronous callback functions in Swift using XCTestExpectation, part of a series on practical testing.
Explains how Python's Mock objects handle non-existent attributes and methods, focusing on special behavior for 'assert' prefixes.
A guide to preventing unit tests from loading the main AppDelegate in Swift, improving test speed and isolation.
Part 6 of a series on creating professional PowerShell DSC resources, focusing on completing Pester unit tests for the Test-TargetResource function.
Part 5 of a series on creating professional PowerShell DSC resources, focusing on writing unit tests for the Set-TargetResource function.
A technical comparison of the Jasmine and Mocha JavaScript testing frameworks, covering their similarities, differences in assertions, and mocking.
A guide to creating parameterized XCTest test cases in Swift, including workarounds for NSInvocation limitations.
A guide on using unit and acceptance tests in Swift to fix bugs, following a TDD approach with practical examples.
A technical guide on using Karma and jasmine-jquery to load JSON files for mocking HTTP responses in AngularJS unit tests.
Introduces Nimble, a matcher framework for Swift/Objective-C, to enhance XCTest cases with more readable and expressive syntax.
Using JSON serialization in PowerShell to compare complex objects for accurate Pester unit testing.
Explores different approaches to testing the data layer in mobile apps using Realm, including in-memory vs on-disk benchmarks.
Explores the value, challenges, and best practices of implementing automated acceptance testing for iOS and mobile development projects.
A guide to creating an auto-mocking Unity container extension using FakeItEasy to simplify unit testing with complex dependencies.