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

Add test case for adding projects outside solution dir descendants #46835

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

edvilme
Copy link
Member

@edvilme edvilme commented Feb 13, 2025

Adds missing tests for #46456
This has apparently been a common issue that was not considered when migrating to the new solutionpersistence parser due to a lack of tests.
This adds a simple test scenario to avoid breaking this behavior in the future.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Feb 13, 2025
@edvilme edvilme force-pushed the edvilme-sln-add-parent branch from 75f869a to 600b6fe Compare February 14, 2025 20:12
@edvilme edvilme marked this pull request as ready for review February 14, 2025 20:14
@Copilot Copilot bot review requested due to automatic review settings February 14, 2025 20:14

Choose a reason for hiding this comment

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

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

Files not reviewed (3)
  • test/TestAssets/TestProjects/TestAppWithSlnAndCsprojInParentDir/Dir/App.sln: Language not supported
  • test/TestAssets/TestProjects/TestAppWithSlnAndCsprojInParentDir/Dir/App.slnx: Language not supported
  • test/TestAssets/TestProjects/TestAppWithSlnAndCsprojInParentDir/Lib/Lib.csproj: Language not supported
Comments suppressed due to low confidence (1)

test/dotnet-sln.Tests/GivenDotnetSlnAdd.cs:1114

  • The test case should verify the contents of the solution file after the project is added to ensure the expected behavior is met.
cmd.Should().Pass(); // TODO: Check actual contents
@edvilme edvilme requested review from Copilot and a team February 14, 2025 20:57

Choose a reason for hiding this comment

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

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

@edvilme edvilme enabled auto-merge (squash) February 14, 2025 21:14
@edvilme edvilme merged commit 4e9565d into dotnet:release/9.0.2xx Feb 14, 2025
29 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants