Skip to content

Commit

Permalink
Exclude [GeneratedCode]
Browse files Browse the repository at this point in the history
Exclude code decorated with `[GeneratedCode]` from code coverage.
  • Loading branch information
martincostello committed Jul 13, 2023
1 parent ef18237 commit a1239d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
<PropertyGroup Condition=" '$(BuildingInsideVisualStudio)' == '' ">
<CollectCoverage Condition=" '$(WEBSITE_URL)' == '' ">true</CollectCoverage>
<CoverletOutputFormat>cobertura,json</CoverletOutputFormat>
<Exclude>[AspNet.Security.OAuth*]*,[Refit*]*,[xunit.*]*,[*]Microsoft.AspNetCore.Http.Generated.*</Exclude>
<ExcludeByAttribute>System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute</ExcludeByAttribute>
<Exclude>[AspNet.Security.OAuth*]*,[Refit*]*,[xunit.*]*</Exclude>
<ExcludeByAttribute>GeneratedCodeAttribute</ExcludeByAttribute>
<Threshold>69</Threshold>
</PropertyGroup>
</Project>

0 comments on commit a1239d4

Please sign in to comment.