-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Exclude files not authored by ML.NET from code coverage #2290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2290 +/- ##
==========================================
+ Coverage 69.82% 71.12% +1.29%
==========================================
Files 786 779 -7
Lines 144185 140208 -3977
Branches 16617 16019 -598
==========================================
- Hits 100684 99729 -955
+ Misses 38954 36043 -2911
+ Partials 4547 4436 -111
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I left one comment.
@@ -43,6 +43,8 @@ | |||
but they need to be migrated. Excluding these classes should have very minimal effect on code coverage. | |||
--> | |||
<Exclude>[*]Microsoft.ML.*Contracts*,[*]Microsoft.ML.Internal.Utilities*,[*]Microsoft.ML.Data.VBuffer*</Exclude> | |||
<ExcludeByAttribute>Obsolete,ExcludeFromCodeCoverage</ExcludeByAttribute> | |||
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of $(BaseOutputPath)..\src\Microsoft.ML.Onnx\...
you can just use $(SourceDir)\Microsoft.ML.Onnx\...
Doesn't make sense to include ONNX ML autogenerated C# to protobuf file generator and Tensorflow sharp files as part of code coverage.