Custom appsettings.json for ASP.NET Core integration tests

added by DotNetKicks
4/4/2019 5:39:34 AM

2 Kicks, 203 Views

ASP.NET Core introduced the concept of TestServer for integration testing of web applications. Integration tests need web application run with all bells and whistles to make sure that all components work together with no flaws. Often we need special settings for integration tests as web application cannot use live services and easiest way to do it is to use special appsettings.json file.