mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-06-01 22:19:31 +00:00
write test results file contents to stdout on process exit
Attempts to fix NUnit logs not appearing in stdout/stderr
This commit is contained in:
parent
77f0047c7d
commit
d31d07b2a7
@ -97,8 +97,8 @@ namespace DistTestCore
|
||||
["success"] = result.Success,
|
||||
["duration"] = lifecycle.GetTestDuration().ToString(@"hh\:mm\:ss"),
|
||||
};
|
||||
using var raw = new StreamWriter(Console.OpenStandardError(), leaveOpen: true) { AutoFlush = true };
|
||||
raw.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(entry));
|
||||
var json = Newtonsoft.Json.JsonConvert.SerializeObject(entry);
|
||||
File.AppendAllText(Global.TestResultsFile, json + "\n");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user