One of the things I really disliked about the previous versions of ASP.NET is that there’s no real good way to run integration tests on your web application. You basically have to set up a full webserver to run integration tests.
Of course if you use Web API 2 or MVC 5 you have the official testhost. It solves a lot of problems, but the API is a mess to work with and very inflexible.
The story for ASP.NET Core is quite different. You can now do a lot more in your testcode and it’s a lot easier to set up. Let’s take a look at what integration testing in ASP.NET core looks like.