Skip to content
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

Remove RunSettingsFilePath support from dotnet test for MTP #47706

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Mar 18, 2025

Fixes #47636

Related to #45927

If we want to support that, it should be part of VSTestBridge by hooking into ComputeRunArguments and passing RunSettingsFilePath via --settings instead of using environment variable.

@Copilot Copilot bot review requested due to automatic review settings March 18, 2025 20:12
@Youssef1313 Youssef1313 requested a review from a team as a code owner March 18, 2025 20:12
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-dotnet test untriaged Request triage from a team member labels Mar 18, 2025

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 support for RunSettingsFilePath from the dotnet test command, as part of cleaning up obsolete functionality.

  • Removed logging and serialization/deserialization of RunSettingsFilePath in various modules.
  • Updated the TestModule and ModuleMessage records to no longer include the RunSettingsFilePath property.
  • Removed environment variable configuration and project property extraction related to RunSettingsFilePath.

Reviewed Changes

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

Show a summary per file
File Description
src/Cli/dotnet/commands/dotnet-test/MSBuildHandler.cs Removed RunSettingsFilePath logging from project properties output.
src/Cli/dotnet/commands/dotnet-test/IPC/Serializers/ModuleMessageSerializer.cs Removed serialization and deserialization of RunSettingsFilePath.
src/Cli/dotnet/commands/dotnet-test/Models.cs Removed RunSettingsFilePath from the TestModule record.
src/Cli/dotnet/commands/dotnet-test/IPC/Models/ModuleMessage.cs Removed RunSettingsFilePath from the ModuleMessage record.
src/Cli/dotnet/commands/dotnet-test/CliConstants.cs Removed the RunSettingsFilePath constant from ProjectProperties.
src/Cli/dotnet/commands/dotnet-test/SolutionAndProjectUtility.cs Updated TestModule instantiation to omit RunSettingsFilePath.
src/Cli/dotnet/commands/dotnet-test/TestModulesFilterHandler.cs Updated TestApplication creation to match the new TestModule signature.
src/Cli/dotnet/commands/dotnet-test/TestApplication.cs Removed RunSettingsFilePath environment variable setup from the test runner.
@Youssef1313 Youssef1313 force-pushed the dev/ygerges/runsettings branch from 4f83a4f to f2cf1d5 Compare March 18, 2025 20:19
Copy link
Member

@Evangelink Evangelink left a comment

Choose a reason for hiding this comment

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

LGTM. We should not need any specific work but could you confirm if the json config file is supported?

@Evangelink Evangelink enabled auto-merge March 18, 2025 22:09
@Youssef1313
Copy link
Member Author

LGTM. We should not need any specific work but could you confirm if the json config file is supported?

I didn't double check, but I think it will work only when using Microsoft.Testing.Platform.MSBuild, as the logic to copy the file is done there. I'm not sure whether or not this is reasonable.

@Evangelink Evangelink merged commit 493a611 into main Mar 19, 2025
39 checks passed
@Evangelink Evangelink deleted the dev/ygerges/runsettings branch March 19, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-dotnet test untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discuss the handling of RunSettingsFilePath in new dotnet test experience
3 participants