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
The same test project when invoked with vstest and MTP may produce slightly different .trx file, namely the former contains the RunInfos with warnings, while the same section will be missing in MTP-generated .trx.
tail of vstest .trx
<ResultSummaryoutcome="Completed">
<Counterstotal="38"executed="38"passed="38"failed="0"error="0"timeout="0"aborted="0"inconclusive="0"passedButRunAborted="0"notRunnable="0"notExecuted="0"disconnected="0"warning="0"completed="0"inProgress="0"pending="0" />
<RunInfos>
<RunInfocomputerName="foo"outcome="Warning"timestamp="2025-09-04T09:18:01.1379610+02:00">
<Text>Test Run deployment issue: The assembly or module 'Microsoft...
stan-sz The final exit code of the test app in this case was zero?
In MTP it seems like we only ever write RunInfos element when the test app fails (which is probably the bug here)
Today we don't actually write anything passed to logging or output in TRX. So even when the RunInfos element is present (when exit code isn't zero), we don't add any warnings "logged" or "printed" by test frameworks
Activity
Youssef1313 commentedon Sep 23, 2025
stan-sz The final exit code of the test app in this case was zero?
In MTP it seems like we only ever write RunInfos element when the test app fails (which is probably the bug here)
Youssef1313 commentedon Sep 23, 2025
If you add some failing test, do you see the element written correctly?
Youssef1313 commentedon Sep 23, 2025
Today we don't actually write anything passed to logging or output in TRX. So even when the RunInfos element is present (when exit code isn't zero), we don't add any warnings "logged" or "printed" by test frameworks
stan-sz commentedon Sep 24, 2025
For the MTP scenario, the same warnings are present in the console. They just don't end up in the .trx.
Evangelink commentedon Nov 5, 2026
There was no other request and stan-sz confirmed this is not important for them so closing as won't fix. We can revisit later based on feedback.