Skip to content

Commit 45a5cfd

Browse files
committed
Fix reporting in Helix
1 parent 8819fcf commit 45a5cfd

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

eng/helix.proj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,21 @@
125125
such as [ConditionalClass]/[ConditionalAssembly] add `category=failing` to tests whose
126126
condition evaluates to false; this filter is what actually skips them at the runner.
127127
128+
The 'report-trx' argument is required so each Helix work item produces a TRX file that Arcade's
129+
Helix reporter uploads to Azure DevOps. The generic MTPProject work-item command only passes
130+
'results-directory', and the Microsoft.Testing.Extensions.TrxReport extension is not
131+
auto-activated, so without this no per-test results would be reported (only work-item-level
132+
pass/fail).
133+
128134
This must run AFTER any per-queue ItemGroup that re-Includes MTPProject items.
129135
-->
130136
<ItemGroup>
131137
<MTPProject Update="@(MTPProject)">
132-
<Arguments>$(XUnitV3Arguments) --filter-not-trait category=failing --ignore-exit-code 8</Arguments>
138+
<Arguments>--report-trx --filter-not-trait category=failing --ignore-exit-code 8</Arguments>
133139
</MTPProject>
134140
</ItemGroup>
135141

136142
<PropertyGroup>
137-
<XUnitWorkItemTimeout Condition = "'$(XUnitWorkItemTimeout)' == ''">03:00:00</XUnitWorkItemTimeout>
143+
<MTPWorkItemTimeout Condition = "'$(MTPWorkItemTimeout)' == ''">03:00:00</MTPWorkItemTimeout>
138144
</PropertyGroup>
139145
</Project>

0 commit comments

Comments
 (0)