You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have links to how that is happening? I thought we already write to the file directly, to be more resilient to crash when running the logger in process.
👍 thx, I thought it is more clever. It would be nice to experiment with a way to write directly to file, and how performant it would be. Especially if the report needs some closing string.
OR at least we could start by writing a file for the report with a failure, and then collect in memory, and then re-write the file. So we get at least a generic failure result when the process crashes and fails to write anything.
Activity
nohwnd commentedon Jun 16, 2025
Do you have links to how that is happening? I thought we already write to the file directly, to be more resilient to crash when running the logger in process.
Youssef1313 commentedon Jun 16, 2025
Jakub Jareš (@nohwnd) We keep collecting the test nodes in memory here:
testfx/src/Platform/Microsoft.Testing.Extensions.TrxReport/TrxDataConsumer.cs
Line 42 in 8512883
Then only in
OnTestSessionFinishingAsyncwe will start do something with them.testfx/src/Platform/Microsoft.Testing.Extensions.TrxReport/TrxDataConsumer.cs
Lines 229 to 232 in 8512883
nohwnd commentedon Jun 16, 2025
👍 thx, I thought it is more clever. It would be nice to experiment with a way to write directly to file, and how performant it would be. Especially if the report needs some closing string.
OR at least we could start by writing a file for the report with a failure, and then collect in memory, and then re-write the file. So we get at least a generic failure result when the process crashes and fails to write anything.