ASP.NET Core Integration Testing & Mocking using Moq
A guide to setting up integration tests in ASP.NET Core using Moq for mocking external dependencies like databases.
A guide to setting up integration tests in ASP.NET Core using Moq for mocking external dependencies like databases.
Explores a prototype library for unit testing Blazor components, covering its goals, how it works, and providing example code.
Explores using dynamically scoped variables in Go to improve test helper APIs, reducing boilerplate and passing of testing.T.
A developer's personal story about learning the critical importance of unit testing while refactoring a complex financial calculation library.
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.