Skip to content

Conversation

@Youssef1313
Copy link
Contributor

PR Summary

PR Context

PR Checklist

@iSazonov iSazonov added the CL-Tools Indicates that a PR should be marked as a tools change in the Change Log label Nov 17, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Nov 20, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot removed Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept Stale labels Dec 5, 2025
@Youssef1313 Youssef1313 marked this pull request as ready for review December 5, 2025 14:25
@Youssef1313 Youssef1313 requested review from a team and jshigetomi as code owners December 5, 2025 14:25
Copilot AI review requested due to automatic review settings December 5, 2025 14:25
@Youssef1313
Copy link
Contributor Author

@iSazonov Can you run the GitHub workflows here please?

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the PowerShell test infrastructure from xUnit v2 to xUnit v3, updates to .NET 10 stable SDK, and migrates to the Microsoft Testing Platform (MTP). The changes modernize the testing framework by replacing deprecated xUnit v2 patterns with v3 equivalents and simplifying test execution.

Key changes:

  • Migrates from xUnit v2 (version 2.x packages) to xUnit v3 using the xunit.v3.mtp-v2 unified package
  • Updates test attributes from SkippableFact/SkippableTheory to standard Fact/Theory with Assert.Skip* methods
  • Replaces priority-based test ordering with source declaration ordering

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
test/xUnit/xUnit.tests.csproj Consolidates multiple xUnit v2 packages into single xunit.v3.mtp-v2 package, adds OutputType, removes deprecated properties
test/hosting/hosting.tests.csproj Similar xUnit v3 migration with package consolidation
global.json Adds test runner configuration for Microsoft Testing Platform
test/xUnit/csharp/test_*.cs Migrates test attributes and skip conditions to xUnit v3 API (SkippableFact → Fact with Assert.Skip*)
test/xUnit/Asserts/PriorityOrderer.cs Replaces priority-based ordering with source declaration ordering for xUnit v3
test/xUnit/Asserts/PriorityAttribute.cs Removes deprecated priority attribute no longer needed in v3
build.psm1 Updates Start-PSxUnit to use MTP command-line arguments instead of legacy dotnet test logger

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Youssef1313 and others added 3 commits December 5, 2025 16:59
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +110 to 111
Assert.SkipUnless(Platform.IsWindows, "Only supported on Windows");

Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first Assert.Skip call makes all subsequent assertions unreachable. Since this test is meant to be permanently skipped ("Skip this flaky test for now"), the Windows platform check on line 110 will never execute. Consider removing line 110 or restructuring the skip logic if the test should eventually be enabled only on Windows.

Suggested change
Assert.SkipUnless(Platform.IsWindows, "Only supported on Windows");

Copilot uses AI. Check for mistakes.
$Filter
)
}

Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new Microsoft Testing Platform command uses --no-progress flag. Consider documenting the new command-line options (--report-xunit, --report-xunit-filename, --results-directory, --no-progress) in a comment to help maintainers understand the change from the previous dotnet test logger approach to MTP-specific options.

Suggested change
# The following dotnet test invocation uses new Microsoft Testing Platform (MTP) command-line options:
# --report-xunit: Generates xUnit test results (replaces previous logger approach)
# --report-xunit-filename: Specifies the output file for xUnit results
# --results-directory: Sets the directory for test results
# --no-progress: Disables progress output for cleaner logs
# These options replace the previous dotnet test logger invocation and are required for MTP compatibility.

Copilot uses AI. Check for mistakes.
@microsoft-github-policy-service microsoft-github-policy-service bot added the Review - Needed The PR is being reviewed label Dec 18, 2025
@microsoft-github-policy-service
Copy link
Contributor

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

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

Labels

CL-Tools Indicates that a PR should be marked as a tools change in the Change Log Review - Needed The PR is being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants