Skip to content

Commit

Permalink
Add back missing test project from running on arcade (#5545)
Browse files Browse the repository at this point in the history
* add back test result upload and add missing test project from running

* fix identification

* filter out performance test result files to avoid warnings
  • Loading branch information
frank-dong-ms-zz authored Dec 10, 2020
1 parent 2a6cf9d commit 02b1fa6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build/ci/job-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,21 @@ jobs:
- script: $(dotnetPath) msbuild -restore build/Codecoverage.proj
displayName: Upload coverage to codecov.io
condition: and(succeeded(), eq(${{ parameters.codeCoverage }}, True))
- task: PublishTestResults@2
displayName: Publish Test Results
condition: succeededOrFailed()
inputs:
testRunner: 'xUnit'
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults'
# Upload all test results except performance test project. On CI by default performance tests
# will not run and test result files will still be generate without details. Avoid uploading
# performance test result to avoid warnings on publish test result stage.
testResultsFiles: |
**/*.xml
!**/*PerformanceTests*.xml
testRunTitle: Machinelearning_Tests_${{ parameters.name }}_$(_configuration)_$(Build.BuildNumber)
configuration: $(_configuration)
mergeTestResults: true
- task: CopyFiles@2
displayName: Stage build logs
condition: not(succeeded())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<IsUnitTestProject>true</IsUnitTestProject>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.ML.Data\Microsoft.ML.Data.csproj" />
<ProjectReference Include="..\..\src\Microsoft.ML.Maml\Microsoft.ML.Maml.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<IsUnitTestProject>true</IsUnitTestProject>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.ML.Core\Microsoft.ML.Core.csproj" />
<ProjectReference Include="..\..\src\Microsoft.ML.Data\Microsoft.ML.Data.csproj" />
Expand Down

0 comments on commit 02b1fa6

Please sign in to comment.