From f735aba7f696b5dde254e64dab1c97507e7fd4a7 Mon Sep 17 00:00:00 2001 From: Victor Chang Date: Tue, 8 Nov 2022 17:14:58 -0800 Subject: [PATCH] Configure IG log for integration test Signed-off-by: Victor Chang --- tests/Integration.Test/Hooks/TestHooks.cs | 3 +- ...InformaticsGateway.Integration.Test.csproj | 6 +- tests/Integration.Test/nlog.config | 88 +++++++++++++++++++ 3 files changed, 95 insertions(+), 2 deletions(-) create mode 100644 tests/Integration.Test/nlog.config diff --git a/tests/Integration.Test/Hooks/TestHooks.cs b/tests/Integration.Test/Hooks/TestHooks.cs index 1d4c2680b..4c5171b98 100644 --- a/tests/Integration.Test/Hooks/TestHooks.cs +++ b/tests/Integration.Test/Hooks/TestHooks.cs @@ -181,10 +181,11 @@ public static void Shtudown() [AfterTestRun(Order = 0)] [AfterScenario] - public static void ClearTestData() + public static void ClearTestData(ISpecFlowOutputHelper outputHelper) { s_minioSink.CleanBucketAsync(); RabbitConnectionFactory.PurgeAllQueues(s_options.Value.Messaging); + outputHelper.WriteLine($"=============================== END ==============================="); } private static void SetupInformaticsGateway() diff --git a/tests/Integration.Test/Monai.Deploy.InformaticsGateway.Integration.Test.csproj b/tests/Integration.Test/Monai.Deploy.InformaticsGateway.Integration.Test.csproj index 705c0f078..fc129fa05 100644 --- a/tests/Integration.Test/Monai.Deploy.InformaticsGateway.Integration.Test.csproj +++ b/tests/Integration.Test/Monai.Deploy.InformaticsGateway.Integration.Test.csproj @@ -1,4 +1,4 @@ - + + + + + + + + + + +