bUnit v2 - The Blazor unit testing library vNext
Overview of bUnit v2, a major update to the Blazor unit testing library, covering new features, breaking changes, and API refinements.
Overview of bUnit v2, a major update to the Blazor unit testing library, covering new features, breaking changes, and API refinements.
Explains how to use xUnit's TheoryData<T> for type-safe parameterized tests in C#, replacing untyped IEnumerable<object[]> data.
Explains why mocking ML models in unit tests is problematic and offers guidelines for effectively testing machine learning code.
A tutorial on creating a GitHub Action to automatically run unit tests on code commits and pull requests.
A tutorial on creating and implementing unit tests for C# projects, covering basics, benefits, and setup with MSTest, xUnit, or nUnit.
A roundup of the top 10 most popular AWS DevOps blog posts from 2023, covering topics like Lambda testing, CodeWhisperer, and CLI tools.
A guide on using Zig's unit testing features to add tests to an existing C application, using the uStreamer video streaming utility as a real-world example.
Introduces bUnit Generators, a tool for automatically creating stubs for third-party components in Blazor unit tests.
A developer's experience using Sweep, an LLM-powered tool that generates pull requests to write unit tests and fix code in a GitHub workflow.
A guide to testing Angular 17's new deferrable views (@defer blocks) using both Angular's built-in testing utilities and Angular Testing Library.
A guide to creating a .NET extension method that formats collections into human-readable strings using the Oxford comma and C# pattern matching.
A guide to creating and testing custom JsonConverter classes in C# using System.Text.Json, including helpful extension methods for unit tests.
A developer reflects on how their opinions on software development practices like comments, testing, IDEs, and remote work have evolved over time.
A guide to Test-Driven Development (TDD) in Swift, explaining the methodology and demonstrating its use through a practical case study.
A quick reference guide for developers transitioning from the Moq mocking library to NSubstitute, covering syntax comparisons.
Explains the advantages of creating custom fakes for unit testing in C#/.NET instead of relying on third-party mocking libraries like Moq.
A guide to globally registering Angular Injection Tokens in the TestBed to simplify test setups and avoid NullInjectorError.
Explores .NET 8's new TimeProvider and FakeTimeProvider for testing time-dependent code, enabling controlled manipulation of time in unit tests.
Announcing luatest, a new, fast Lua test runner inspired by pytest, offering significant speed improvements over existing options.
Explores using prompt-hoisting to improve GPT-based code generation, turning tests into prompts to reduce AI's indeterminacy and ensure code correctness.