Skip to content

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

Merged
merged 3 commits into from
Jan 29, 2019

Conversation

codemzs
Copy link
Member

@codemzs codemzs commented Jan 28, 2019

Doesn't make sense to include ONNX ML autogenerated C# to protobuf file generator and Tensorflow sharp files as part of code coverage.

@codecov
Copy link

codecov bot commented Jan 28, 2019

Codecov Report

Merging #2290 into master will increase coverage by 1.29%.
The diff coverage is n/a.

@@            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
Flag Coverage Δ
#Debug 71.12% <ø> (+1.29%) ⬆️
#production 67.55% <ø> (+1.47%) ⬆️
#test 85.04% <ø> (+0.04%) ⬆️

@codemzs codemzs changed the title Exclude auto generated ONNX ML file from test coverage. Exclude files not authored by ML.NET Jan 28, 2019
@codemzs codemzs changed the title Exclude files not authored by ML.NET Exclude files not authored by ML.NET from code coverage Jan 28, 2019
@codemzs codemzs requested a review from zeahmed January 28, 2019 23:53
Copy link
Contributor

@zeahmed zeahmed left a 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.

@codemzs codemzs merged commit 9938fdc into dotnet:master Jan 29, 2019
@@ -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>
Copy link
Member

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\...

@ghost ghost locked as resolved and limited conversation to collaborators Mar 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants