Sponsored by Nick Chapsas—Want to learn how to build elegant REST APIs in .NET? Get 5% off Nick's latest course "From Zero to Hero: REST APIs in .NET"!
My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.
Integration testing and NuGet packaging
Creating a source generator - Part 3
In this post I describe how to integration-test your source generator, how to pack it in a NuGet package, and how to test your NuGet package!…
Testing an incremental generator with snapshot testing
Creating a source generator - Part 2
In this post I describe how to unit test an incremental generator using Verify for snapshot testing…
Supporting integration tests with WebApplicationFactory in .NET 6
Exploring .NET 6 - Part 6
In this post I look at the changes that were made to WebApplicationFactory<T> to support minimal hosting APIs with WebApplicationBuilder in .NET 6…
Using SSH and localhost.run to test GitHub webhooks locally
In this post I describe how to test GitHub webhooks locally using SSH and localhost.run, a free service for HTTP tunnelling.…
Should you unit-test API/MVC controllers in ASP.NET Core?
In this post I discuss unit testing of API/MVC controllers in ASP.NET Core and some of the difficulties you face.…
Converting integration tests to .NET Core 3.0
Upgrading to ASP.NET Core 3.0 - Part 5
In this post I discuss the changes required to upgrade integration tests that use WebApplicationFactory or TestServer to ASP.NET Core 3.0.…