-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Enable code coverage #17067
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
Enable code coverage #17067
Changes from all commits
a53644f
4d66254
ce2a124
8f48366
9d65733
f33ab1a
3bf33c0
bd33498
36a8ef6
12c9091
ad80a5d
a87a0eb
de97ca8
fa0394d
f19a8e1
807b582
d6362fb
60392ad
0e4a598
cf10aa0
e5293e1
32b250c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "version": 1, | ||
| "isRoot": true, | ||
| "tools": { | ||
| "dotnet-reportgenerator-globaltool": { | ||
| "version": "4.8.0", | ||
| "commands": [ | ||
| "reportgenerator" | ||
| ] | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?xml version="1.0"?> | ||
| <RunSettings> | ||
| <DataCollectionRunSettings> | ||
| <DataCollectors> | ||
| <DataCollector friendlyName="XPlat Code Coverage" enabled="true"> | ||
| <Configuration> | ||
| <Format>cobertura</Format> | ||
| <ExcludeByAttribute>ExcludeFromCodeCoverageAttribute,GeneratedCodeAttribute,Obsolete</ExcludeByAttribute> | ||
| <IncludeTestAssembly>false</IncludeTestAssembly> | ||
| <SingleHit>false</SingleHit> | ||
| <SkipAutoProps>true</SkipAutoProps> | ||
| </Configuration> | ||
| </DataCollector> | ||
| <!-- Enable logging to diagnose test host failures --> | ||
| <DataCollector friendlyName="blame" enabled="true" /> | ||
| </DataCollectors> | ||
| </DataCollectionRunSettings> | ||
| </RunSettings> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ | |
| <Compile Include="$(AzureCoreSharedSources)ConditionalRequestOptionsExtensions.cs" /> | ||
| <Compile Include="$(AzureCoreSharedSources)DiagnosticScope.cs" /> | ||
| <Compile Include="$(AzureCoreSharedSources)HashCodeBuilder.cs" /> | ||
| <Compile Include="$(AzureCoreSharedSources)NoBodyResponse{T}.cs" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. where these names causing issues? or why the rename?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Files that have
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for the context; that addresses my question below as well.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a place where this can be documented so until the bug is fixed, other people in the repo can avoid it?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jsquire keep in mind as well the class name doesn't change. Eliding |
||
| <Compile Include="$(AzureCoreSharedSources)NoBodyResponseOfT.cs" /> | ||
| <Compile Include="$(AzureCoreSharedSources)PageResponseEnumerator.cs" /> | ||
| <Compile Include="$(AzureCoreSharedSources)DiagnosticScopeFactory.cs" /> | ||
| <Compile Include="$(AzureCoreSharedSources)TaskExtensions.cs" /> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| <PropertyGroup> | ||
| <ExcludeFromCodeCoverage>true</ExcludeFromCodeCoverage> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not a fan of starting to exclude projects one by one. EH is not the only directory that has T1&T2 clients so we need a general solution here before we jump into workarounds.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That only affects T1. Somehow - no way I could find after going through their various targets, nor does @jsquire know - they are detected as T2. None of the other CIs that ran as part of this PR exhibited that.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note from the targets file I added only T2 projects are covered by default. These are an anomaly. |
||
| <SupportsNetStandard20>true</SupportsNetStandard20> | ||
| </PropertyGroup> | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.