From fc89de9541b229f56bdf5a1d8a72add0490bc9a3 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Fri, 16 Oct 2020 09:49:20 +0200 Subject: [PATCH] Debug info for tests, to debug on Azure Devops Signed-off-by: Bjarke Berg --- .../Testing/UmbracoIntegrationTest.cs | 2 +- src/Umbraco.Tests.Integration/Tests.cs | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/Umbraco.Tests.Integration/Tests.cs diff --git a/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs b/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs index 71759db71c..ce982b4905 100644 --- a/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs +++ b/src/Umbraco.Tests.Integration/Testing/UmbracoIntegrationTest.cs @@ -92,7 +92,7 @@ namespace Umbraco.Tests.Integration.Testing [SetUp] public virtual void Setup() { - TestContext.Progress.Write($"Start test {_testCount++}: "); + TestContext.Progress.Write($"Start test {_testCount++}: {TestContext.CurrentContext.Test.Name}"); _stopWatch = new Stopwatch(); _stopWatch.Start(); var hostBuilder = CreateHostBuilder(); diff --git a/src/Umbraco.Tests.Integration/Tests.cs b/src/Umbraco.Tests.Integration/Tests.cs new file mode 100644 index 0000000000..1bd39ebad6 --- /dev/null +++ b/src/Umbraco.Tests.Integration/Tests.cs @@ -0,0 +1,21 @@ +using NUnit.Framework; +using Umbraco.Tests.Integration.Testing; + +namespace Umbraco.Tests.Integration +{ + [TestFixture] + public class Tests : UmbracoIntegrationTest + { + [Test] + public void Test__Stupid_test_that_only_is_used_to_check_how_long_time_we_spend_int_setup_and_teardown1() + { + + } + + [Test] + public void Test__Stupid_test_that_only_is_used_to_check_how_long_time_we_spend_int_setup_and_teardown2() + { + + } + } +}