Skip to content

Commit

Permalink
Skip coverage reporting for Passwordless.Tests.Infra (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz authored Feb 3, 2024
1 parent e5c94b9 commit 854d3e5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>net6.0;net462</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Testcontainers" Version="3.6.0" />
Expand All @@ -13,5 +17,4 @@
<ProjectReference Include="..\..\src\Passwordless\Passwordless.csproj" />
</ItemGroup>


</Project>
13 changes: 11 additions & 2 deletions tests/Passwordless.Tests.Infra/Polyfill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@
// ReSharper disable InconsistentNaming
// ReSharper disable PartialTypeWithSinglePart

namespace System.Runtime.CompilerServices;
namespace System.Runtime.CompilerServices
{
public static class IsExternalInit;
}
#endif

public static class IsExternalInit;
#if NETFRAMEWORK
namespace System.Diagnostics.CodeAnalysis
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Event | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Struct, Inherited = false)]
public sealed class ExcludeFromCodeCoverageAttribute : Attribute;
}
#endif

0 comments on commit 854d3e5

Please sign in to comment.