Get the integration tests to calm down (#195)

Removes console spew when running the integration tests at the command
line

Fixes: #193
This commit is contained in:
Ryan Nowak 2020-01-08 11:36:55 -08:00 committed by Aman Bhardwaj
parent f5cd830cc2
commit 793c0a4a36
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,7 @@ namespace Dapr.AspNetCore.IntegrationTest
using Microsoft.AspNetCore.Mvc.Testing;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
public class AppWebApplicationFactory : WebApplicationFactory<Startup>
{
@ -17,6 +18,10 @@ namespace Dapr.AspNetCore.IntegrationTest
protected override IHostBuilder CreateHostBuilder()
{
var builder = base.CreateHostBuilder();
builder.ConfigureLogging(b =>
{
b.SetMinimumLevel(LogLevel.None);
});
return builder.ConfigureServices((context, services) =>
{
services.AddSingleton<StateClient>(this.StateClient);