Skip to content

Commit 9938fdc

Browse files
authored
Exclude files not authored by ML.NET from code coverage (#2290)
* Exclude autogenerated ONNX ML file from test coverage. * Exclude Tensorflow sharp files. * PR feedback.
1 parent a0deda0 commit 9938fdc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
but they need to be migrated. Excluding these classes should have very minimal effect on code coverage.
4444
-->
4545
<Exclude>[*]Microsoft.ML.*Contracts*,[*]Microsoft.ML.Internal.Utilities*,[*]Microsoft.ML.Data.VBuffer*</Exclude>
46+
<ExcludeByAttribute>Obsolete,ExcludeFromCodeCoverage</ExcludeByAttribute>
47+
<ExcludeByFile>$(BaseOutputPath)..\src\Microsoft.ML.Onnx\OnnxMl.cs,$(BaseOutputPath)..\src\Microsoft.ML.TensorFlow\TensorFlow\Buffer.cs,$(BaseOutputPath)..\src\Microsoft.ML.TensorFlow\TensorFlow\Tensor.cs,$(BaseOutputPath)..\src\Microsoft.ML.TensorFlow\TensorFlow\Tensorflow.cs</ExcludeByFile>
4648
</PropertyGroup>
4749

4850
</Project>

0 commit comments

Comments
 (0)