|
27 | 27 | </PropertyGroup> |
28 | 28 |
|
29 | 29 | <ItemGroup> |
30 | | - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" /> |
| 30 | + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" /> |
31 | 31 | <PackageReference Include="MSTest.TestFramework" Version="2.1.0" /> |
32 | 32 | <PackageReference Include="MSTest.TestAdapter" Version="2.1.0" /> |
33 | 33 | <PackageReference Include="xunit" Version="2.4.0" /> |
34 | 34 | <PackageReference Include="Xunit.Combinatorial" Version="$(XunitCombinatorialVersion)" /> |
35 | 35 | <PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" /> |
36 | 36 | <PackageReference Include="Microsoft.DotNet.XUnitExtensions" Version="2.4.0-prerelease-63213-02" /> |
37 | | - <PackageReference Include="coverlet.collector" Version="$(CoverletCollectorVersion)" /> |
| 37 | + <PackageReference Include="coverlet.msbuild" Version="$(CoverletVersion)" /> |
38 | 38 | </ItemGroup> |
39 | 39 |
|
40 | 40 | <ItemGroup> |
|
54 | 54 | </ProjectReference> |
55 | 55 | </ItemGroup> |
56 | 56 |
|
| 57 | + <PropertyGroup Condition="'$(Coverage)' == 'true'"> |
| 58 | + <!-- https://github.com/tonerdo/coverlet/issues/618 --> |
| 59 | + <IncludeTestAssembly>true</IncludeTestAssembly> |
| 60 | + |
| 61 | + <CollectCoverage>true</CollectCoverage> |
| 62 | + <SingleHit>true</SingleHit> |
| 63 | + <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> <!-- https://github.com/tonerdo/coverlet/issues/72 --> |
| 64 | + <CoverletOutputFormat>opencover</CoverletOutputFormat> |
| 65 | + <CoverletOutput>$(BaseOutputPath)$(PlatformConfig)\coverage\$(MSBuildProjectName).coverage</CoverletOutput> |
| 66 | + <Include>[Microsoft.ML.*]*</Include> |
| 67 | + <!-- Excluding for perf reasons. These classes have tests that can be run conditionally |
| 68 | + but they need to be migrated. Excluding these classes should have very minimal effect on code coverage. |
| 69 | + --> |
| 70 | + <Exclude>[*]Microsoft.ML.*Contracts*,[*]Microsoft.ML.Internal.Utilities*,[*]Microsoft.ML.Data.VBuffer*</Exclude> |
| 71 | + <ExcludeByAttribute>Obsolete,ExcludeFromCodeCoverage</ExcludeByAttribute> |
| 72 | + <ExcludeByFile>$(RepoRoot)src\Microsoft.ML.OnnxConverter\OnnxMl.cs,$(RepoRoot)src\Microsoft.ML.TensorFlow\TensorFlow\Buffer.cs,$(RepoRoot)src\Microsoft.ML.TensorFlow\TensorFlow\Tensor.cs,$(RepoRoot)src\Microsoft.ML.TensorFlow\TensorFlow\Tensorflow.cs</ExcludeByFile> |
| 73 | + </PropertyGroup> |
| 74 | + |
57 | 75 | </Project> |
0 commit comments