Skip to content

Commit c17e791

Browse files
committed
add back test result upload and add missing test project from running
1 parent b927a0f commit c17e791

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

build/ci/job-template.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,16 @@ jobs:
148148
- script: $(dotnetPath) msbuild -restore build/Codecoverage.proj
149149
displayName: Upload coverage to codecov.io
150150
condition: and(succeeded(), eq(${{ parameters.codeCoverage }}, True))
151+
- task: PublishTestResults@2
152+
displayName: Publish Test Results
153+
condition: succeededOrFailed()
154+
inputs:
155+
testRunner: 'xUnit'
156+
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults'
157+
testResultsFiles: '**/*.xml'
158+
testRunTitle: Machinelearning_Tests_${{ parameters.name }}_$(_configuration)_$(Build.BuildNumber)
159+
configuration: $(_configuration)
160+
mergeTestResults: true
151161
- task: CopyFiles@2
152162
displayName: Stage build logs
153163
condition: not(succeeded())

test/Microsoft.ML.OnnxTransformerTest/Microsoft.ML.OnnxTransformerTest.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<IsUnitTestProject>true</IsUnitTestProject>
4+
<IsTestProject>true</IsTestProject>
5+
</PropertyGroup>
26
<ItemGroup>
37
<ProjectReference Include="..\..\src\Microsoft.ML.Data\Microsoft.ML.Data.csproj" />
48
<ProjectReference Include="..\..\src\Microsoft.ML.Maml\Microsoft.ML.Maml.csproj" />

test/Microsoft.ML.TestFramework/Microsoft.ML.TestFramework.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<IsUnitTestProject>true</IsUnitTestProject>
4+
<IsTestProject>true</IsTestProject>
5+
</PropertyGroup>
26
<ItemGroup>
37
<ProjectReference Include="..\..\src\Microsoft.ML.Core\Microsoft.ML.Core.csproj" />
48
<ProjectReference Include="..\..\src\Microsoft.ML.Data\Microsoft.ML.Data.csproj" />

0 commit comments

Comments
 (0)