Skip to content

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

Description

@Nicconike

Description

Migrate all test projects from xUnit v2 (2.9.3) to xunit.v3 (4.0.3) along with Xunit.StaFact (4.0.24) and Microsoft Testing Platform (MTP).

Tasks

  • Update LocalTelemetry.App.Tests.csproj, LocalTelemetry.Core.Tests.csproj, and LocalTelemetry.Notifier.Tests.csproj to <OutputType>Exe</OutputType>.
  • Replace package reference xunit with xunit.v3 (4.0.3) and upgrade Xunit.StaFact to 4.0.24.
  • Resolve xUnit1051 analyzer rules across test cases by forwarding TestContext.Current.CancellationToken.
  • Verify coverage collection via MTP code coverage extensions in CI (coverlet.MTP).
  • Remove the Dependabot major version ignore rule for Xunit.StaFact in .github/dependabot.yml.

Activity

  1. added
    refactor
    on Oct 20, 2026
  2. moved this from Backlog to Todo in LocalTelemetryon Oct 20, 2026
  3. changed the title [-]refactor(tests): migrate test suite from xUnit v2 to xunit.v3[/-] [+]refactor(tests): migrate test suite from xUnit v2 to v3[/+] on Oct 20, 2026
  4. self-assigned this
    on Oct 20, 2026
  5. moved this from Todo to In Progress in LocalTelemetryon Oct 20, 2026
  6. moved this from In Progress to Todo in LocalTelemetryon Oct 20, 2026
  7. added
    testing
    csharp
    scope:core
    on Oct 20, 2026
  8. added theissue type on Nov 22, 2026
  9. moved this from Todo to In Progress in LocalTelemetryon Nov 30, 2026
  10. moved this from In Progress to Done in LocalTelemetryon Nov 30, 2026
  11. moved this from Done to In Progress in LocalTelemetryon Nov 30, 2026
  12. moved this from In Progress to Done in LocalTelemetryon Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

csharprefactorscope:coretesting

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions