Debug info for tests, to debug on Azure Devops

Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Bjarke Berg
2020-10-16 09:49:20 +02:00
parent 38897c297f
commit fc89de9541
2 changed files with 22 additions and 1 deletions

View File

@@ -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();

View File

@@ -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()
{
}
}
}