Test methods coupling
Discusses the pitfalls of coupling unit tests through shared setup and state, advocating for independent tests for better maintainability.
Discusses the pitfalls of coupling unit tests through shared setup and state, advocating for independent tests for better maintainability.
A guide to fixing flaky tests caused by time dependencies using a static SystemDateTime helper class in .NET.
A guide to using class-based tests in Python to make test suites more extensive, expressive, and maintainable, demonstrated with an API login endpoint.
Explains how to use the linker's --wrap flag to mock C standard library functions for unit testing, enabling isolated code testing.
Explains a subtle bug in C# where using 'var' with an async method call without 'await' leads to unexpected behavior, and discusses prevention.
A speaker's experience and talk highlights from the JEEConf 2016 Java and enterprise software development conference.
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.