Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
b0b4190
Bump dotnet-reportgenerator-globaltool from 5.5.11 to 5.5.12 (#2062)
dependabot[bot] Nov 1, 2026
98d291d
Bump danielpalme/ReportGenerator-GitHub-Action from 5.5.11 to 5.5.12 …
dependabot[bot] Nov 1, 2026
ea74a47
Bump github/codeql-action from 4.38.2 to 4.39.1 (#2060)
dependabot[bot] Nov 1, 2026
1d9db3a
Bump Microsoft.Testing.Extensions.AzureDevOpsReport from 2.5.1 to 2.5…
dependabot[bot] Nov 1, 2026
feef6ea
Merge commit '1d9db3aacfbf61e1b2b4d9190715a13ba694d8c9' into v11.0.0/…
gimlichael Nov 1, 2026
483ff5a
Prevent invalid IL from branch trampolines (#2067)
Bertk Nov 1, 2026
345b63c
update CHANGELOG.md (#2068)
Bertk Nov 2, 2026
f37bf3d
Narrow Dynamic Exclude Filters for Loaded Assemblies (#2069)
Bertk Nov 3, 2026
d66c8f1
Merge commit 'f37bf3d1ea8795cc1bdc57b29ad2ec81d10c9f1a' into v11.0.0/…
gimlichael Nov 3, 2026
922b11c
✅ verify windows release tests and update upstream documentation
gimlichael Nov 3, 2026
7a261c8
🔀 reconcile PR #8 with the 10.1.2 fixes on master
aicia-bot Nov 4, 2026
5c61491
💬 record PR #8 reconciliation CI results
aicia-bot Nov 4, 2026
93c6c6e
⬆️ update dependencies and improve documentation for xunit and MTP
gimlichael Nov 4, 2026
299035e
🔀 sync documentation updates with the PR fixes
aicia-bot Nov 4, 2026
8e75c90
✨ add test for bounded execution in issue 2058 instrumentation
gimlichael Nov 4, 2026
d7c945a
✨ add bounded version of try-finally do-while back edge test
gimlichael Nov 4, 2026
d7f3c6b
✨ add bounded version of while-true if-then try-finally test
gimlichael Nov 4, 2026
e1bf90b
✨ add bounded version of while-true if-then try-finally test
gimlichael Nov 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This major release adds .NET 11 support, removes the dedicated .NET 9 target, an
- Target .NET 10 and .NET 11 alongside .NET Standard 2.0, with runtime dependency versions selected per target framework,
- Preserve reviewed upstream history through merge ancestry while retaining selective Codebelt file integration; the 2026-11-01 synchronization through `2e0a852` changes no production code, dependencies, or package layout,
- Exclude unreachable branches from branch coverage totals and from Cobertura, LCOV, and OpenCover branch details,
- Update Microsoft Testing Platform to 2.5.1, Microsoft.NET.Test.Sdk to 18.11.0, xunit.v3.mtp-v2 to 4.0.2, xunit.runner.visualstudio to 4.0.1, Moq to 4.21.0, and LinqKit.Microsoft.EntityFrameworkCore to 10.1.1,
- Update Microsoft Testing Platform to 2.5.2, Microsoft.NET.Test.Sdk to 18.11.0, xunit.v3.mtp-v2 to 4.0.2, xunit.runner.visualstudio to 4.0.1, Moq to 4.21.0, and LinqKit.Microsoft.EntityFrameworkCore to 10.1.1,
- Update NuGet.Packaging and NuGet.Versioning to 7.9.0, retaining a NuGet.Versioning 6.14.3 override for .NET Standard 2.0,
- Change the validation tests to read the package folder from MSBuild metadata instead of a hard-coded `artifacts/package/<configuration>` path, with missing-package guidance that points to `-p:PrepareValidationPackage=true` or an existing package,
- Disable automatic package preparation in GitHub Actions so validation consumes the downloaded release package, while allowing opt-out outside GitHub Actions with `-p:PrepareValidationPackage=false`,
Expand All @@ -32,6 +32,7 @@ This major release adds .NET 11 support, removes the dedicated .NET 9 target, an

### Fixed

- Prevent invalid IL from branch trampolines near exception-handler boundaries and optimized loop back-edges,
- Instrument local functions when CompilerGeneratedAttribute or GeneratedCodeAttribute is excluded, while continuing to honor other configured exclusion attributes,
- Resolve shared-framework assemblies when runtime directory names contain version suffixes,
- Align pattern-matching branch assertions with the selected SDK's compiled output.
Expand Down
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<MicrosoftNetRuntimeVersion>$(MicrosoftNet10RuntimeVersion)</MicrosoftNetRuntimeVersion>
<MicrosoftNetRuntimeVersion Condition="'$(TargetFramework)' == 'net11.0'">$(MicrosoftNet11RuntimeVersion)</MicrosoftNetRuntimeVersion>
<MicrosoftNETTestSdkVersion>18.11.0</MicrosoftNETTestSdkVersion>
<MicrosoftTestingPlatformVersion>2.5.1</MicrosoftTestingPlatformVersion>
<MicrosoftTestingPlatformVersion>2.5.2</MicrosoftTestingPlatformVersion>
<MoqVersion>4.21.0</MoqVersion>
<NugetPackageVersion>7.9.0</NugetPackageVersion>
<XunitV3Version>4.0.2</XunitV3Version>
Expand Down
39 changes: 25 additions & 14 deletions Documentation/Coverlet.MTP.Integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,33 @@ A sample project file looks like:

```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<OutputType>Exe</OutputType>
<!-- Enable Microsoft Testing Platform -->
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport> <!-- not required for .NET SDK 10 or later -->
</PropertyGroup>
<ItemGroup>
<!-- Use xunit.v3.mtp-v2 for MTP v2.x compatibility -->
<PackageReference Include="xunit.v3.mtp-v2" Version="3.2.1" />
<PackageReference Include="Microsoft.Testing.Platform" Version="2.2.1" />
<PackageReference Include="Codebelt.Coverlet.MTP" Version="CURRENT_VERSION" />
</ItemGroup>
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<OutputType>Exe</OutputType>
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="xunit.v3" Version="4.0.2" />
<PackageReference Include="xunit.v3.runner.console" Version="4.0.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.1" />
<PackageReference Include="Codebelt.Coverlet.MTP" Version="10.1.2" />
</ItemGroup>
</Project>
```

In xUnit v3 4.x, `xunit.v3` includes MTP v2, so this example does not need a direct `Microsoft.Testing.Platform` reference. The console and Visual Studio runner references are optional for MTP coverage.

With .NET SDK 10 or later, select MTP in the repository's `global.json`, keeping any existing SDK settings:

```json
{
"test": {
"runner": "Microsoft.Testing.Platform"
}
}
```

### Basic Usage

To collect code coverage, run your test executable with the `--coverlet` flag:
Expand All @@ -65,7 +76,7 @@ Or using `dotnet test` with MTP enabled projects:
dotnet test --coverlet
```

After the test run, a `coverage.json` file containing the results will be generated in the current directory.
By default, JSON and Cobertura reports are written to the test results directory (normally `TestResults`), with timestamped filenames.

## Command Line Options

Expand Down
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,29 @@ Example test project:
<TargetFramework>net10.0</TargetFramework>
<OutputType>Exe</OutputType>
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="xunit.v3.mtp-v2" Version="4.0.2" />
<PackageReference Include="Microsoft.Testing.Platform" Version="2.5.1" />
<PackageReference Include="Codebelt.Coverlet.MTP" Version="*" />
<PackageReference Include="xunit.v3" Version="4.0.2" />
<PackageReference Include="xunit.v3.runner.console" Version="4.0.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.1" />
<PackageReference Include="Codebelt.Coverlet.MTP" Version="10.1.2" />
</ItemGroup>
</Project>
```

In xUnit v3 4.x, `xunit.v3` includes MTP v2, so this example does not need a direct `Microsoft.Testing.Platform` reference. The console and Visual Studio runner references are optional for MTP coverage.

With .NET SDK 10 or later, select MTP in the repository's `global.json`, keeping any existing SDK settings:

```json
{
"test": {
"runner": "Microsoft.Testing.Platform"
}
}
```

## Usage

Run the MTP test project with the normal Coverlet MTP argument:
Expand Down
Loading