Skip to content

Commit 8ad36a1

Browse files
committed
It's a bit frustrating when you don't get any output from the tests and VSTS test task just times out :( Hard to figure out why they don't work..
1 parent 56cd210 commit 8ad36a1

File tree

3 files changed

+1
-39
lines changed

3 files changed

+1
-39
lines changed

src/Server/Coderr.Server.SqlServer.Tests/IntegrationTest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
namespace codeRR.Server.SqlServer.Tests
1515
{
16-
[Log]
1716
public class IntegrationTest : IDisposable
1817
{
1918
private static DatabaseManager _databaseManager;
@@ -51,8 +50,6 @@ static IntegrationTest()
5150

5251
public IntegrationTest(ITestOutputHelper output)
5352
{
54-
LogAttribute.Logger = output;
55-
MethodLogger.OutputHelper = output;
5653
_testDataManager = new TestDataManager(_databaseManager.OpenConnection);
5754
}
5855

src/Server/Coderr.Server.SqlServer.Tests/LogAttribute.cs

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/Server/Coderr.Server.SqlServer.Tests/Xunit/MethodLogger.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ namespace codeRR.Server.SqlServer.Tests.Xunit
1010
{
1111
public class MethodLogger: XunitTestClassRunner
1212
{
13-
private readonly IMessageSink _diagnosticMessageSink;
1413
private ILog _logger = LogManager.GetLogger(typeof(MethodLogger));
15-
internal static ITestOutputHelper OutputHelper;
14+
1615
public MethodLogger(ITestClass testClass, IReflectionTypeInfo @class, IEnumerable<IXunitTestCase> testCases, IMessageSink diagnosticMessageSink, IMessageBus messageBus, ITestCaseOrderer testCaseOrderer, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, IDictionary<Type, object> collectionFixtureMappings) : base(testClass, @class, testCases, diagnosticMessageSink, messageBus, testCaseOrderer, aggregator, cancellationTokenSource, collectionFixtureMappings)
1716
{
18-
_diagnosticMessageSink = diagnosticMessageSink;
1917
}
2018

2119
protected override async Task<RunSummary> RunTestMethodAsync(ITestMethod testMethod, IReflectionMethodInfo method, IEnumerable<IXunitTestCase> testCases,

0 commit comments

Comments
 (0)