Skip to content

Commit 62e17c1

Browse files
committed
attempting to debug tests
Signed-off-by: Neil South <[email protected]>
1 parent 5821850 commit 62e17c1

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

src/InformaticsGateway/Test/Monai.Deploy.InformaticsGateway.Test.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--
1+
<!--
22
~ Copyright 2021-2023 MONAI Consortium
33
~
44
~ Licensed under the Apache License, Version 2.0 (the "License");
@@ -28,6 +28,7 @@
2828
<Compile Include="..\..\Shared\Test\InstanceGenerator.cs" Link="Shared\InstanceGenerator.cs" />
2929
<Compile Include="..\..\Shared\Test\TestStorageInfo.cs" Link="Shared\TestStorageInfo.cs" />
3030
<Compile Include="..\..\Shared\Test\VerifyLogExtension.cs" Link="Shared\VerifyLogExtension.cs" />
31+
<Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
3132
</ItemGroup>
3233

3334
<ItemGroup>

src/InformaticsGateway/Test/Services/Common/OutputDataPluginEngineFactoryTest.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using System.IO.Abstractions;
2020
using System.Linq;
2121
using System.Reflection;
22+
using System.Text.Json;
2223
using Microsoft.Extensions.Logging;
2324
using Monai.Deploy.InformaticsGateway.Api.PlugIns;
2425
using Monai.Deploy.InformaticsGateway.Common;
@@ -28,20 +29,23 @@
2829
using Monai.Deploy.InformaticsGateway.Test.PlugIns;
2930
using Moq;
3031
using Xunit;
32+
using Xunit.Abstractions;
3133

3234
namespace Monai.Deploy.InformaticsGateway.Test.Services.Common
3335
{
3436
public class OutputDataPlugInEngineFactoryTest
3537
{
3638
private readonly Mock<ILogger<OutputDataPlugInEngineFactory>> _logger;
3739
private readonly FileSystem _fileSystem;
40+
private readonly ITestOutputHelper _output;
3841

39-
public OutputDataPlugInEngineFactoryTest()
42+
public OutputDataPlugInEngineFactoryTest(ITestOutputHelper output)
4043
{
4144
_logger = new Mock<ILogger<OutputDataPlugInEngineFactory>>();
4245
_fileSystem = new FileSystem();
43-
46+
_output = output;
4447
_logger.Setup(p => p.IsEnabled(It.IsAny<LogLevel>())).Returns(true);
48+
4549
}
4650

4751
[Fact]
@@ -51,6 +55,8 @@ public void RegisteredPlugIns_WhenCalled_ReturnsListOfPlugIns()
5155

5256
var result = factory.RegisteredPlugIns().OrderBy(r => r.Value).ToArray();
5357

58+
_output.WriteLine($"result now = {JsonSerializer.Serialize(result)}");
59+
5460
Assert.Equal(3, result.Length);
5561

5662
Assert.Equal(typeof(DicomDeidentifier).GetCustomAttribute<PlugInNameAttribute>().Name, result[0].Key);
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
$schema": "https://xunit.net/schema/current/xunit.runner.schema.json",
3+
"diagnosticMessages": true
4+
}

0 commit comments

Comments
 (0)