Easy unit testing of null argument validation (C# 8 edition)
A guide to automating C# unit tests for null argument validation using C# 8's nullable reference types metadata.
A guide to automating C# unit tests for null argument validation using C# 8's nullable reference types metadata.
A tutorial on testing Axios API calls in Jest, including mocking requests and handling success/error cases with code examples.
A developer shares insights on writing effective unit tests for React applications, covering coverage, test failures, and behavior over implementation.
A guide to refactoring PowerShell switch statements, demonstrating how to replace them with hash tables for cleaner, more maintainable code.
A guide to using Angular Testing Library for writing maintainable, user-focused tests for Angular components, with a practical feedback form example.
Explains advanced stubbing techniques and built-in answer strategies in the Mockito Java mocking library for unit testing.
A tutorial on setting up unit tests for C code using Google's gtest framework and CMake build system.
A prototype for unit testing Blazor components using a fast, in-memory test renderer, demonstrating how to test UI interactions without a browser.
Introducing ArchUnit, a Java library for testing and enforcing architectural rules and naming conventions in your codebase.
A guide to unit testing .NET project templates created with `dotnet new`, including a helper library and practical xUnit examples.
A tutorial on using Jest snapshot testing to capture and compare the output of a React component before and after a state change.
The article argues against writing many small, single-assertion tests for React components, advocating for fewer, more comprehensive tests.
A tutorial on setting up and using Enzyme with Jest for unit and integration testing of React components.
Explains why nesting in tests, especially with beforeEach hooks, leads to unmaintainable code, using a React component as an example.
A tutorial on using Dependency Injection to mock network services in iOS View Controllers for better testability and separation of concerns.
A tutorial on unit testing an ASP.NET Core Web API controller using XUnit and FakeItEasy, covering mocking dependencies and test structure.
A tutorial on applying Test-Driven Development (TDD) principles to build and test a Vue.js component, using a color picker as an example.
A guide to testing iOS view controller navigation using a NavigationDelegate pattern to simplify unit tests and avoid complex UI setups.
A guide to writing better unit tests for delegate patterns in Swift/iOS, focusing on behavior over implementation for maintainable test suites.
Explains NSpec conventions for BDD testing in .NET, covering context, setup, assertions, and cleanup.