Skip to content

Cleanup dead code in dotnet test #49952

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Cleanup dead code in dotnet test #49952

wants to merge 1 commit into from

Conversation

Youssef1313
Copy link
Member

No description provided.

@Copilot Copilot AI review requested due to automatic review settings July 27, 2025 03:06
Copy link
Contributor

@Copilot 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 removes dead code from the dotnet test command by eliminating the unused Architecture parameter from the TestOptions record and updating related method signatures accordingly.

  • Removes the Architecture parameter from the TestOptions record constructor
  • Updates the GetTestOptions method to no longer accept or use the ParseResult parameter
  • Simplifies the method call in PrepareEnvironment to match the updated signature

Reviewed Changes

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

File Description
src/Cli/dotnet/Commands/Test/TestingPlatformCommand.cs Updates method signature and call to remove unused ParseResult parameter
src/Cli/dotnet/Commands/Test/Options.cs Removes Architecture parameter from TestOptions record
Comments suppressed due to low confidence (1)

src/Cli/dotnet/Commands/Test/TestingPlatformCommand.cs:95

  • The removal of the Architecture parameter from TestOptions should include test updates to verify the change doesn't break existing functionality. Consider adding or updating tests to ensure the TestOptions record works correctly with only the remaining parameters.
        testOptions = GetTestOptions(filterModeEnabled, isHelp: ContainsHelpOption(arguments));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant