From f6bde61aeebbb995b8e9cd0440d5d8be5f8c7d9d Mon Sep 17 00:00:00 2001 From: Adrian Codrington Date: Fri, 10 Nov 2023 16:25:13 +0800 Subject: [PATCH] WritFile, write to std out --- source/Halibut.Tests/BaseTest.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Halibut.Tests/BaseTest.cs b/source/Halibut.Tests/BaseTest.cs index fd7d52c2..36b11e7e 100644 --- a/source/Halibut.Tests/BaseTest.cs +++ b/source/Halibut.Tests/BaseTest.cs @@ -64,7 +64,7 @@ public void TearDown() var artifactUri = "adrian-test-trace-logs/" + Path.GetFileName(traceLogFileLogger.FilePath); test.WriteStdOutput("Adrian trace log file: " + artifactUri); - //test.WriteFile(artifactUri, "Adrian test artifact"); + test.WriteFile(artifactUri, "Adrian test artifact"); var message = new ServiceMessage("testMetadata") { @@ -77,7 +77,9 @@ public void TearDown() //using the teamCityWriter validates that we're not inside a test suite, which doesn't matter for this message type //ie, the validation is too broad. var stringMessage = new ServiceMessageFormatter().FormatMessage(message); + Logger.Information(stringMessage); Console.WriteLine(stringMessage); + test.WriteStdOutput(stringMessage); test.Dispose(); teamCityWriter.Dispose();