Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update to xunit.v3, .NET 10 stable, and MTP#26461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Youssef1313 wants to merge11 commits intoPowerShell:master
base:master
Choose a base branch
Loading
fromYoussef1313:patch-1

Conversation

@Youssef1313
Copy link
Contributor

PR Summary

PR Context

PR Checklist

@iSazonoviSazonov added the CL-ToolsIndicates that a PR should be marked as a tools change in the Change Log labelNov 17, 2025
@microsoft-github-policy-servicemicrosoft-github-policy-servicebot added the Waiting on AuthorThe PR was reviewed and requires changes or comments from the author before being accept labelNov 20, 2025
@microsoft-github-policy-servicemicrosoft-github-policy-servicebot removed Waiting on AuthorThe PR was reviewed and requires changes or comments from the author before being accept Stale labelsDec 5, 2025
@Youssef1313Youssef1313 marked this pull request as ready for reviewDecember 5, 2025 14:25
CopilotAI review requested due to automatic review settingsDecember 5, 2025 14:25
@Youssef1313
Copy link
ContributorAuthor

@iSazonov Can you run the GitHub workflows here please?

Copy link
Contributor

CopilotAI 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 thexunit.v3.mtp-v2 unified package
  • Updates test attributes fromSkippableFact/SkippableTheory to standardFact/Theory withAssert.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
FileDescription
test/xUnit/xUnit.tests.csprojConsolidates multiple xUnit v2 packages into single xunit.v3.mtp-v2 package, adds OutputType, removes deprecated properties
test/hosting/hosting.tests.csprojSimilar xUnit v3 migration with package consolidation
global.jsonAdds test runner configuration for Microsoft Testing Platform
test/xUnit/csharp/test_*.csMigrates test attributes and skip conditions to xUnit v3 API (SkippableFact → Fact with Assert.Skip*)
test/xUnit/Asserts/PriorityOrderer.csReplaces priority-based ordering with source declaration ordering for xUnit v3
test/xUnit/Asserts/PriorityAttribute.csRemoves deprecated priority attribute no longer needed in v3
build.psm1Updates 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.

Youssef1313and others added3 commitsDecember 5, 2025 16:59
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

CopilotAI 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");

Choose a reason for hiding this comment

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

The firstAssert.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
)
}

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-servicemicrosoft-github-policy-servicebot added the Review - NeededThe PR is being reviewed labelDec 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 for7 days.
Maintainer, please provide feedback and/or mark it asWaiting on Author

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

Reviewers

Copilot code reviewCopilotCopilot left review comments

@jshigetomijshigetomiAwaiting requested review from jshigetomijshigetomi is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

CL-ToolsIndicates that a PR should be marked as a tools change in the Change LogReview - NeededThe PR is being reviewed

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Youssef1313@iSazonov

[8]ページ先頭

©2009-2025 Movatter.jp