Skip to content

Commit 4fed623

Browse files
Bump coverlet.MTP from 8.0.1 to 10.0.0 (#3088)
Updated [coverlet.MTP](https://github.com/coverlet-coverage/coverlet) from 8.0.1 to 10.0.0. <details> <summary>Release notes</summary> _Sourced from [coverlet.MTP's releases](https://github.com/coverlet-coverage/coverlet/releases)._ ## 10.0.0 ## Improvements - Unique Report Filenames (coverlet.MTP and AzDO) [#​1866](coverlet-coverage/coverlet#1866) - Add `--coverlet-file-prefix` option for unique report files [#​1869](coverlet-coverage/coverlet#1869) - Introduce .NET 10 support [#​1823](coverlet-coverage/coverlet#1823) ## Fixed - Fix [BUG] Wrong branch rate on IAsyncEnumerable for generic type [#​1836](coverlet-coverage/coverlet#1836) - Fix [BUG] Missing Coverage after moving to MTP [#​1843](coverlet-coverage/coverlet#1843) - Fix [BUG] No coverage reported when targeting .NET Framework with 8.0.1 [#​1842](coverlet-coverage/coverlet#1842) - Fix [BUG] Behavior changes between MTP and Legacy (msbuild) [#​1878](coverlet-coverage/coverlet#1878) - Fix [BUG] Coverlet.MTP - Unable to load coverlet.mtp.appsettings.json [#​1880](coverlet-coverage/coverlet#1880) - Fix [BUG] Coverlet.Collector produces empty report when Mediator.SourceGenerator is referenced [#​1718](coverlet-coverage/coverlet#1718) by <https://github.com/yusyd> - Fix [BUG] Crash during instrumentation (Methods using LibraryImport/DllImport have no body) [#​1762](coverlet-coverage/coverlet#1762) ## Maintenance - Add comprehensive async method tests and documentation for issue [#​1864](coverlet-coverage/coverlet#1864) - Replace Tmds.ExecFunction Package in coverlet.core.coverage.tests [#​1833](coverlet-coverage/coverlet#1833) - Add net9.0 and net10.0 targets [#​1822](coverlet-coverage/coverlet#1822) [Diff between 8.0.1 and 10.0.0](coverlet-coverage/coverlet@v8.0.1...v10.0.0) Commits viewable in [compare view](coverlet-coverage/coverlet@v8.0.1...v10.0.0). </details> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=coverlet.MTP&package-manager=nuget&previous-version=8.0.1&new-version=10.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: iht <[email protected]>
1 parent 364e513 commit 4fed623

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,25 @@ jobs:
2424
working-directory: ImperatorToCK3.UnitTests
2525
shell: pwsh
2626
run: |
27-
dotnet test --coverlet --coverlet-output-format lcov
27+
dotnet test --coverlet --coverlet-output-format lcov --coverlet-file-prefix irtock3
28+
- name: "Locate coverage report"
29+
id: coverage_report
30+
shell: pwsh
31+
run: |
32+
$coverageFile = Get-ChildItem "ImperatorToCK3.UnitTests/bin/Debug/net10.0/TestResults/irtock3.coverage*.info" |
33+
Sort-Object LastWriteTime -Descending |
34+
Select-Object -First 1 -ExpandProperty FullName
35+
36+
if (-not $coverageFile) {
37+
throw "Coverage report not found."
38+
}
39+
40+
"path=$coverageFile" >> $env:GITHUB_OUTPUT
2841
- name: "Publish coverage report to coveralls.io"
2942
uses: coverallsapp/github-action@v2
3043
with:
3144
github-token: ${{ secrets.GITHUB_TOKEN }}
32-
path-to-lcov: ImperatorToCK3.UnitTests/bin/Debug/net10.0/TestResults/coverage.info
45+
path-to-lcov: ${{ steps.coverage_report.outputs.path }}
3346
format: lcov
3447
debug: true
3548

ImperatorToCK3.UnitTests/ImperatorToCK3.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2929
<PrivateAssets>all</PrivateAssets>
3030
</PackageReference>
31-
<PackageReference Include="coverlet.MTP" Version="8.0.1" />
31+
<PackageReference Include="coverlet.MTP" Version="10.0.0" />
3232
</ItemGroup>
3333

3434
<ItemGroup>

0 commit comments

Comments
 (0)