diff --git a/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs b/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs index 950104062f..71759db71c 100644 --- a/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs +++ b/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs @@ -27,6 +27,7 @@ using System.Collections.Generic; using Microsoft.Extensions.Configuration; using System.Data.SqlClient; using System.Data.Common; +using System.Diagnostics; using System.IO; using Umbraco.Core.Configuration.Models; using Microsoft.Extensions.Options; @@ -83,12 +84,19 @@ namespace Umbraco.Tests.Integration.Testing _testTeardown = null; FirstTestInFixture = false; FirstTestInSession = false; + + _stopWatch.Stop(); + TestContext.Progress.WriteLine($" {_stopWatch.Elapsed}"); } [SetUp] public virtual void Setup() { + TestContext.Progress.Write($"Start test {_testCount++}: "); + _stopWatch = new Stopwatch(); + _stopWatch.Start(); var hostBuilder = CreateHostBuilder(); + var host = hostBuilder.StartAsync().GetAwaiter().GetResult(); Services = host.Services; var app = new ApplicationBuilder(host.Services); @@ -490,5 +498,7 @@ namespace Umbraco.Tests.Integration.Testing protected static bool FirstTestInSession = true; protected bool FirstTestInFixture = true; + private Stopwatch _stopWatch; + private static int _testCount = 1; } }