Skip to content

build(deps): upgrade to .NET 11, xUnit v3 with MTP, and latest toolchains - #30

Merged
Nicconike merged 6 commits into
developfrom
refactor/23-xunit-v3-net11-upgrades
Nov 30, 2026
Merged

Nicconike merged 6 commits into
developfrom
refactor/23-xunit-v3-net11-upgrades

Conversation

@Nicconike

@Nicconike Nicconike commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

Upgrade the solution to .NET 11, migrate the test suite from xUnit v2 to xUnit v3 with Microsoft Testing Platform (MTP), and update NuGet, Bun, and GitHub Actions dependencies.

Type of Change

  • refactor - Code restructuring (no behavior change)
  • build - Build system or dependency changes
  • docs - Documentation
  • ci - CI/CD changes
  • test - Tests

Scope: core | app | ci

Changes

  • Retarget all projects, global.json, setup.iss, and CI workflows to .NET 11 (11.0.100) and upgrade Microsoft.* and WebView2 packages
  • Migrate test projects to xunit.v3 (4.0.3), Xunit.StaFact (4.0.24), Microsoft Testing Platform, and coverlet.MTP (10.1.1)
  • Remove VSTest-only test packages, unused Moq, and the Xunit.StaFact Dependabot major ignore rule
  • Resolve xUnit1051 cancellation token rules, replace obsolete CollectionBehavior, and isolate order-dependent test state
  • Update Svelte 5, Vite, Vitest, Mermaid, commitlint, semantic-release (26.0.1), and pinned GitHub Actions

Related Issues

Closes #23

Verification

  • Frontend builds (cd src/LocalTelemetry.App/Settings/wwwroot && bun run build)
  • Frontend tests pass (cd tests/LocalTelemetry.App.Tests/Settings/wwwroot && bun run test)
  • Backend builds (dotnet build --configuration Debug)
  • Backend tests pass (dotnet test --configuration Debug)
  • Code formatting check passes (dotnet format --verify-no-changes)
  • No compiler or analyzer warning suppressions added (Zero Suppressions Policy)
  • No debug code or secrets in the diff
  • PR title & commit message follow Conventional Commits

- Retarget solution and CI workflows to .NET 11 (11.0.100) and update Microsoft.* and WebView2 packages
- Migrate test projects to xunit.v3, Xunit.StaFact, Microsoft Testing Platform, and coverlet.MTP
- Update CI, SonarQube, CodeQL, Scorecard, Release, Dependabot and docs for MTP coverage and latest pinned GitHub Actions
- Resolve xUnit1051 cancellation token rules, replace obsolete CollectionBehavior, and isolate order-dependent test state
- Upgrade Svelte, Vite, Vitest, Mermaid, commitlint, and semantic-release (26.0.1) across all Bun workspaces
@Nicconike Nicconike added documentation Improvements or additions to documentation csharp C# and .NET related updates ci GitHub Actions and CI/CD workflow updates actions GitHub Actions runner/action updates dependencies Pull requests that update a dependency file refactor Code refactoring or performance improvements labels Nov 29, 2026
@Nicconike
Nicconike enabled auto-merge (squash) November 29, 2026 23:29
@Nicconike Nicconike moved this from Todo to In Review in LocalTelemetry Nov 29, 2026
@codecov

codecov Bot commented Nov 29, 2026

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 11.59kB (4.86%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
settings-ui-esm 250.1kB 11.59kB (4.86%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: settings-ui-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index.js 11.59kB 193.61kB 6.37% ⚠️

@Nicconike
Nicconike disabled auto-merge November 29, 2026 23:37
@Nicconike Nicconike added testing Unit tests and test suites frontend Svelte 5 / Vite / Bun frontend updates scope:ci CI/CD, build scripts and dependencies labels Nov 29, 2026
@Nicconike Nicconike self-assigned this Nov 29, 2026
@Nicconike Nicconike changed the title Refactor/23 xunit v3 net11 upgrades build(deps): upgrade to .NET 11, xUnit v3 with MTP, and latest toolchains Nov 29, 2026
@Nicconike
Nicconike enabled auto-merge (squash) November 29, 2026 23:42
Comment thread setup.iss Resolved
@codecov

codecov Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@             Coverage Diff             @@
##           develop      #30      +/-   ##
===========================================
+ Coverage    82.56%   86.26%   +3.69%     
===========================================
  Files           68       67       -1     
  Lines        19296    18704     -592     
  Branches      3213     3155      -58     
===========================================
+ Hits         15932    16135     +203     
+ Misses        2332     1558     -774     
+ Partials      1032     1011      -21     
Flag Coverage Δ
app 86.27% <ø> (+7.16%) ⬆️
core 85.90% <ø> (+0.23%) ⬆️
notifier 98.10% <ø> (+1.01%) ⬆️
release 84.03% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
App 86.27% <ø> (+7.16%) ⬆️
Core 85.90% <ø> (+0.23%) ⬆️
Notifier 98.10% <ø> (+1.01%) ⬆️
Release Tooling 84.03% <ø> (ø)

@Nicconike Nicconike linked an issue Nov 30, 2026 that may be closed by this pull request
5 tasks done
@Nicconike
Nicconike disabled auto-merge November 30, 2026 13:22
1. Continuous Integration: Restrict sync.yml workflow_run triggers to the primary CI workflow only to prevent duplicate runs.

2. Code Quality and Tests: Add comprehensive unit tests across App, Tray, Overlay, Win32, and Settings to raise App coverage to 90.23%.

3. Static Analysis: Remove redundant resource disposal in TaskbarOverlayManagerTests to resolve SonarLint rule S3966.
@Nicconike
Nicconike enabled auto-merge (squash) November 30, 2026 13:58
@sonarqubecloud

Copy link
Copy Markdown

@Nicconike
Nicconike disabled auto-merge November 30, 2026 14:09
@Nicconike
Nicconike merged commit 7d5ce52 into develop Nov 30, 2026
14 checks passed
@Nicconike
Nicconike deleted the refactor/23-xunit-v3-net11-upgrades branch November 30, 2026 15:37
@github-project-automation github-project-automation Bot moved this from In Review to Done in LocalTelemetry Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

actions GitHub Actions runner/action updates ci GitHub Actions and CI/CD workflow updates csharp C# and .NET related updates dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation frontend Svelte 5 / Vite / Bun frontend updates refactor Code refactoring or performance improvements scope:ci CI/CD, build scripts and dependencies testing Unit tests and test suites

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

refactor(tests): migrate test suite from xUnit v2 to v3

2 participants