From 54efccb4c06666816d43813968484fedc2215ed7 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..97cc8ab94 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, ScenarioContext scenarioContext) { s_minioSink.CleanBucketAsync(); RabbitConnectionFactory.PurgeAllQueues(s_options.Value.Messaging); + outputHelper.WriteLine("=============================== END {0} ===============================", scenarioContext.ScenarioInfo.Title); } 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 @@ - + + + + + + + + + + +