Skip to content

Commit

Permalink
fix: exclude testlogger assemblies from code coverage. (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
codito authored Feb 10, 2024
1 parent 7f498d6 commit eb34e3c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

## Unreleased (v3.1.x)

- Update core testlogger to 3.1.138.
## v3.1.16 - 2024/02/10

- Update core testlogger to 3.1.140.
- Fix: exclude testlogger assemblies from code coverage. See
https://github.com/spekt/junit.testlogger/issues/72 and
https://github.com/spekt/junit.testlogger/issues/64.
- Fix: unknown namespace reporting for
nested classes. See https://github.com/spekt/testlogger/pull/41.

## v3.1.15 - 2023/07/06

Expand Down
2 changes: 1 addition & 1 deletion scripts/dependencies.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<MSTestVersion>3.0.4</MSTestVersion>
<NETTestSdkVersion>17.3.2</NETTestSdkVersion>
<MoqVersion>4.18.4</MoqVersion>
<TestLoggerVersion>3.1.138</TestLoggerVersion>
<TestLoggerVersion>3.1.140</TestLoggerVersion>

<!-- Test Assets use the minimum supported versions -->
<NETTestSdkMinimumVersion>15.0.0</NETTestSdkMinimumVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</PropertyGroup>

<ItemGroup>
<Compile Include="..\NUnit.Xml.TestLogger\Assembly.cs" Link="Assembly.cs" />
<Compile Include="..\NUnit.Xml.TestLogger\NUnitXmlTestLogger.cs">
<Link>NUnitXmlTestLogger.cs</Link>
</Compile>
Expand Down
16 changes: 16 additions & 0 deletions src/NUnit.Xml.TestLogger/Assembly.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright (c) Spekt Contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

// <auto-generated>
// Skip code analysis errors.
// </auto-generated>

using System.Diagnostics.CodeAnalysis;

[assembly: ExcludeFromCodeCoverage]

namespace System.Diagnostics.CodeAnalysis
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Event | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
internal sealed class ExcludeFromCodeCoverageAttribute : Attribute { }
}

0 comments on commit eb34e3c

Please sign in to comment.