Skip to content

Commit

Permalink
Fix displayed coverage (#5)
Browse files Browse the repository at this point in the history
* Exclude tests assembly from test coverage calculation

* Omit ExcludeFromCodeCoverage on net48
  • Loading branch information
neon-sunset authored Aug 12, 2022
1 parent 8d6f42b commit 6a6ccb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RangeExtensions.Tests/Properties.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#if !NET48
using System.Diagnostics.CodeAnalysis;

[assembly: ExcludeFromCodeCoverage]
#endif
1 change: 1 addition & 0 deletions RangeExtensions.Tests/RangeExtensions.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<WarningsAsErrors>nullable</WarningsAsErrors>

<IsPackable>false</IsPackable>
<Exclude>RangeExtensions.Tests.AssertHelpers*</Exclude>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 6a6ccb6

Please sign in to comment.