Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 25, 2025

Migrates test infrastructure from xUnit v3 (MTP v1) to xUnit v3 with Microsoft Testing Platform v2. Updates CLI syntax in workflows to match MTP v2 requirements.

Changes

  • Package: xunit.v3xunit.v3.mtp-v2 in Directory.Packages.props and test projects
  • global.json: Add "test": { "runner": "Microsoft.Testing.Platform" } configuration
  • Workflows: Update dotnet test CLI syntax for MTP v2 compatibility
  • Cleanup: Remove xunit.runner.visualstudio package (no longer needed with MTP v2)

CLI Syntax Update

MTP v2 requires --project flag instead of positional arguments:

- dotnet test -c Release --no-build ./test/OrchardCore.Tests/OrchardCore.Tests.csproj
+ dotnet test --project ./test/OrchardCore.Tests/OrchardCore.Tests.csproj -c Release --no-build

Updated in: pr_ci.yml, main_ci.yml, mac_unit_test_ci.yml, preview_ci.yml, release_ci.yml

Original prompt

Migrate xUnit v3 with Microsoft Testing Platform v2. Update workflows for new CLI syntax.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Migrate xUnit v3 to Microsoft Testing Platform v2 Migrate xUnit v3 with Microsoft Testing Platform v2 Nov 25, 2025
Copilot AI requested a review from sebastienros November 25, 2025 02:47
@sebastienros
Copy link
Member

@copilot Some packages like xunit.runner.visualstudio could be removed now I believe.

Copy link
Contributor Author

Copilot AI commented Nov 25, 2025

@copilot Some packages like xunit.runner.visualstudio could be removed now I believe.

Removed xunit.runner.visualstudio from Directory.Packages.props and both test projects in cd79c3c.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • code.jquery.com
    • Triggering command: /home/REDACTED/work/OrchardCore/OrchardCore/test/OrchardCore.Tests/bin/Release/net10.0/OrchardCore.Tests /home/REDACTED/work/OrchardCore/OrchardCore/test/OrchardCore.Tests/bin/Release/net10.0/OrchardCore.Tests --server dotnettestcli --dotnet-test-pipe /tmp/0d02f10824164911af35fa01afae0faf (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@sebastienros sebastienros marked this pull request as ready for review November 25, 2025 05:32
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

This pull request has merge conflicts. Please resolve those before requesting a review.

@sebastienros
Copy link
Member

@copilot five the better conflicts with main branch

@sebastienros
Copy link
Member

@copilot sorry, fix the merge conflicts with main branch

Copy link
Contributor Author

Copilot AI commented Dec 5, 2025

@copilot five the better conflicts with main branch

I'm unable to resolve merge conflicts directly as I cannot pull branches from GitHub. Could you please resolve the conflicts with main and I can continue with any additional changes needed afterward?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants