chore(deps): update xUnit.net v3 to 4.0
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- csharp, github-actions
- Área
- build-system, testing
Línea de trabajo
Start with root Directory.Packages.props, tests/Directory.Build.props, and .github/workflows/build-library.yml; check the xUnit 4 migration notes and the test runner configuration. Search for the listed ordering and parallelism APIs, then run dotnet restore, dotnet build, and dotnet test. Done means CI and coverage work, all tests remain discovered, and the deferred MTP migration has a follow-up issue.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Part 5 of the outdated-package sweep (dotnet-outdated 4.8.1, 2026-11-05). Major upgrade of the xUnit.net v3 framework.
Current state
Root Directory.Packages.props:
xunit.v33.2.2,xunit.v3.core3.2.2,xunit.v3.assert3.2.2 -> 4.0.2xunit.runner.visualstudio3.1.5 -> 4.0.1
tests/Directory.Build.props: test projects are OutputType=Exe, reference Microsoft.NET.Test.Sdk, xunit.v3, XUnit.Combinatorial, and xunit.runner.visualstudio; dotnet test runs via the VSTest host with coverlet / XPlat Code Coverage. xunit.v3.core and xunit.v3.assert are referenced by CommunityToolkit.Datasync.TestCommon.
Key breaking changes in 4.0.0 (https://xunit.net/releases/v3/4.0.0)
- Microsoft Testing Platform v1 support dropped; MTP v2 is now the default. If CI/
dotnet testprints "Testing with VSTest target is no longer supported by Microsoft.Testing.Platform on .NET 10 SDK and later", the repo's test runner config must be updated (see https://xunit.net/docs/getting-started/v3/microsoft-testing-platform and the "Testing with 'dotnet test'" doc). Two options: (a) stay on VSTest by using thexunit.v3.*.mtp-offpackage variants (e.g.xunit.v3.mtp-offinstead ofxunit.v3), or (b) move to MTP v2 andglobal.jsontest.runnersettings. Prefer (a) first (smallest change; keeps coverlet/XPlat coverage and current CI commands), and file a follow-up issue for MTP migration. - Reporting switches renamed for MTP (
-report-xunit->-report-xunit-xml, etc.) and CTRF format changed. Check.github/workflows/build-library.ymland any scripts for use of these flags. - New class/method test orderers; test case ordering semantics changed. Search the tests for
ITestCaseOrderer,TestCaseOrderer,CollectionBehavior,DisableTestParallelization,MaxParallelThreads. - Parallelism attributes:
[assembly: CollectionBehavior]options for parallelism are obsolete/uncallable; use[assembly: Parallelization]. Checkxunit.runner.json/testconfig.jsontoo. - Mono unsupported (not relevant).
XUnit.Combinatorial2.x works with 4.x (depends onxunit.v3.extensibility.core>= 1.0.0); confirm after the "update test tooling" PR.
Steps
- Create the branch. Bump all four packages in lockstep (versions must exist: check NuGet; use latest 4.0.x).
- Choose option (a) above; fix compile errors (extensibility/orderer/parallelism APIs).
dotnet restore && dotnet build && dotnet test. Compare total/passed/skipped test counts againstmainbefore the change to prove no tests were silently dropped or not discovered.- Verify the CI test summary + coverage output still work (
TestResults/SummaryGithub.md, coverage upload) in.github/workflows/build-library.yml. - Dispatch
build-library.ymlon the fork with--ref <branch>. - Check
CONTRIBUTING.md/docs for test-run instructions that need updating.
Acceptance criteria
- xunit.v3 packages at 4.0.x and runner at 4.0.1; no test loss (document counts in the PR); CI green with coverage.
- If MTP migration is deferred, a follow-up issue exists.
- PR title:
chore(deps): update xUnit.net v3 to 4.0.
- Lenguaje dominante
- C#
- Estrellas
- 184
- Forks
- 48
- Merge medio
- 21 min
- PR fusionados (30 d)
- 7
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CommunityToolkit/Datasync
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
CommunityToolkit/Datasync#600 · 1 comentario ·
-
Blocked dependencies Server
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
CommunityToolkit/Datasync#594 ·
-
dependencies Examples
Dificultad 4/5 3-5 días Aptitud para principiantes 40/100
CommunityToolkit/Datasync#593 ·
-
dependencies Infrastructure
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
CommunityToolkit/Datasync#592 ·
-
dependencies Infrastructure
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
CommunityToolkit/Datasync#590 ·
Todos los issues de CommunityToolkit/Datasync
Issues similares
-
Bug: Needs Replicating
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
space-wizards/RobustToolbox#7189 ·
Los mantenedores suelen responder en 1 día
-
enhancement needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/microsoft-ui-reactor#1460 ·
Los mantenedores suelen responder en 1 día
-
t/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
dotnet/maui#39950 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
The server's default HttpClient fails on plain http and on HTTPS servers without HTTP/2Posiblemente ocupada @yasmoradi la tomó hoy. Abiertoarea / templates
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
bitfoundation/bitplatform#14659 ·
Los mantenedores suelen responder en 1 día
-
DbTransaction.SupportsSavepoints docs say Release/ReleaseAsync are expected to throw, but they are no-ops by designPosiblemente ocupada @alaricd la tomó hoy. Abiertoarea-System.Transactions untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
dotnet/runtime#137040 · 1 comentario ·
Los mantenedores suelen responder en 1 día