Unit Test 11ty Pages With Vitest and Typescript
A guide to unit testing 11ty (Eleventy) JavaScript/TypeScript templates using Vitest, focusing on testing data and render methods.
A guide to unit testing 11ty (Eleventy) JavaScript/TypeScript templates using Vitest, focusing on testing data and render methods.
Explores the concept of a 'unit' in unit testing, arguing it's not necessarily a class and discussing how to determine the right scope for effective tests.
Explains how to use the dotnet CLI's filter switch to run a specific subset of tests from a C# .NET test project, avoiding code modifications.
Explains the Humble Object design pattern for separating hard-to-test dependencies from core logic to improve unit testing in software development.
Explores the shift from the traditional testing pyramid to a testing diamond model, emphasizing more integration tests for modern architectures.
Go 1.20 introduces support for collecting and merging code coverage from integration tests with unit test coverage, demonstrated with a sample project.
Explains how to combine Angular Testing Library and Test Harnesses to write more robust and maintainable tests for components, especially third-party ones.
A comprehensive guide to unit testing and mocking in the NestJS framework, covering best practices, examples, and CI/CD integration.
A tutorial on mocking and simulating location data for automated testing in iOS using XCTest and a local Sinatra server.
A tutorial on using React Testing Library to test React components from a user's perspective, covering setup with Jest.
A guide to using AutoFixture with xUnit to generate anonymous test data, making unit tests more robust and maintainable.
Explains how to use FluentAssertions' Assertion Scopes to see all test failures at once, improving debugging efficiency.
A step-by-step guide to writing unit tests for a Node.js Express API, covering setup, tools like Mocha and Chai, and best practices.
Explains the WebApplicationFactory in .NET for integration testing ASP.NET Core WebAPIs, highlighting its benefits and usage.
Explains the triangulation technique in Test-Driven Development (TDD) to safely generalize code using multiple test assertions.
Explores why data and ML pipeline tests break incorrectly and offers strategies for writing more robust unit, schema, and integration tests.
A guide to testing custom Kafka Connect source connectors, covering unit and integration testing strategies with code examples.
Explains the 'Don't Mock What You Don't Own' testing principle, discussing why you should avoid mocking third-party dependencies and offering alternatives.
A tutorial on testing ASP.NET Core Minimal APIs using xUnit, covering unit and integration tests for endpoints.
A guide to setting up unit testing for React applications using Node.js 18's built-in test runner and esbuild, instead of Jest.