Skip to content

Commit 02b1fa6

Browse files
Add back missing test project from running on arcade (#5545)
* add back test result upload and add missing test project from running * fix identification * filter out performance test result files to avoid warnings
1 parent 2a6cf9d commit 02b1fa6

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

build/ci/job-template.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,21 @@ 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+
# Upload all test results except performance test project. On CI by default performance tests
158+
# will not run and test result files will still be generate without details. Avoid uploading
159+
# performance test result to avoid warnings on publish test result stage.
160+
testResultsFiles: |
161+
**/*.xml
162+
!**/*PerformanceTests*.xml
163+
testRunTitle: Machinelearning_Tests_${{ parameters.name }}_$(_configuration)_$(Build.BuildNumber)
164+
configuration: $(_configuration)
165+
mergeTestResults: true
151166
- task: CopyFiles@2
152167
displayName: Stage build logs
153168
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)