From d832591db5ddc594a97cc8a75739e0868094e3ec Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 15 May 2021 22:31:59 +0800 Subject: test: Use xunit logging output. --- BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs') diff --git a/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs b/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs index 259ebfa1..68d52b19 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs @@ -8,6 +8,7 @@ using Timeline.Models.Http; using Timeline.Services.User; using Timeline.Tests.Helpers; using Xunit; +using Xunit.Abstractions; namespace Timeline.Tests.IntegratedTests { @@ -17,19 +18,19 @@ namespace Timeline.Tests.IntegratedTests protected int TestUserCount { get; } - public IntegratedTestBase() : this(1) + public IntegratedTestBase(ITestOutputHelper testOutputHelper) : this(1, testOutputHelper) { } - public IntegratedTestBase(int userCount) + public IntegratedTestBase(int userCount, ITestOutputHelper testOutputHelper) { if (userCount < 0) throw new ArgumentOutOfRangeException(nameof(userCount), userCount, "User count can't be negative."); TestUserCount = userCount; - TestApp = new TestApplication(); + TestApp = new TestApplication(testOutputHelper); } protected virtual Task OnInitializeAsync() -- cgit v1.2.3