Repository navigation
Migrate 11 PowerShell E2E tests to C# Apex tests - #7345
Merged
Merged
Conversation
…ase.cs Migrated tests from GetPackageTest.ps1, UpdatePackageTest.ps1, and InstallPackageTest.ps1: - GetPackageFromPMC_ListsInstalledPackagesAsync - GetPackageFromPMCForProject_ReturnsEmptyForNoInstalledPackages - GetPackageFromPMCForProject_ReturnsCorrectPackagesAsync - GetPackageFromPMCForProject_ReturnsEmptyForOtherProjectAsync - GetPackageFromPMCWithFilter_ReturnsMatchingPackageAsync - UpdatePackageFromPMCWithWhatIf_DoesNotUpdateAsync - UpdatePackageFromPMCToSpecificVersion_UpdatesCorrectlyAsync - InstallPackageFromPMCToMultipleProjects_SucceedsAsync - InstallPackageFromPMCWithIgnoreDependencies_InstallsOnlySpecifiedPackageAsync - UninstallPackageFromPMCWithForce_RemovesPackageEvenWithDependentsAsync - UninstallPackageFromPMCWithRemoveDependencies_RemovesAllAsync - GetPackageFromPMCWithNoSolution_Fails Agent-Logs-Url: https://github.com/NuGet/NuGet.Client/sessions/725e5c3b-f932-4705-9629-4683d5d072c7 Co-authored-by: nkolev92 <[email protected]>
nkolev92
marked this pull request as ready for review
April 30, 2026 17:48
nkolev92
approved these changes
Apr 30, 2026
nkolev92
reviewed
May 4, 2026
…ct install, ListAvailable rename Agent-Logs-Url: https://github.com/NuGet/NuGet.Client/sessions/a5333258-4746-47ed-8b68-3eae21d8a798 Co-authored-by: nkolev92 <[email protected]>
Contributor
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
nkolev92
reviewed
May 4, 2026
… assertions Agent-Logs-Url: https://github.com/NuGet/NuGet.Client/sessions/d2d74060-e94d-41c2-8254-8a1337c06d20 Co-authored-by: nkolev92 <[email protected]>
nkolev92
reviewed
May 4, 2026
…ns, ProjectName) Agent-Logs-Url: https://github.com/NuGet/NuGet.Client/sessions/6104b798-8814-48bb-8ac2-4ec3cad8c0f1 Co-authored-by: nkolev92 <[email protected]>
nkolev92
reviewed
May 4, 2026
…alledPackagesAsync; use Get-Project -All | Install-Package piping Agent-Logs-Url: https://github.com/NuGet/NuGet.Client/sessions/2c66a616-639b-4f0f-bcc6-486d6f7fc2e1 Co-authored-by: nkolev92 <[email protected]>
jeffkl
approved these changes
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Progress: https://github.com/NuGet/Client.Engineering/issues/2085
Description
Migrates PowerShell E2E tests to C# Apex tests in
NuGetConsoleTestCase.csand removes the migrated PS tests.Test-GetPackageListsInstalledPackagesGetPackageTest.ps1GetPackageFromPMC_ListsInstalledPackagesAsyncTest-GetPackageForProjectReturnsEmptyProjectIfItHasNoInstalledPackageGetPackageTest.ps1GetPackageFromPMC_ListsInstalledPackagesAsync)Test-GetPackageForProjectReturnsCorrectPackagesGetPackageTest.ps1GetPackageFromPMCForProject_ReturnsCorrectPackagesAsyncTest-GetPackageForProjectReturnsEmptyIfItHasNoInstalledPackageGetPackageTest.ps1GetPackageFromPMC_ListsInstalledPackagesAsync)Test-GetPackageForProjectReturnsEmptyIfItHasNoInstalledPackage2GetPackageTest.ps1GetPackageFromPMCForProject_ReturnsEmptyForOtherProjectAsyncTest-GetInstalledPackageWithFilterReturnsCorrectPackageGetPackageTest.ps1GetPackageFromPMCWithFilter_ReturnsMatchingPackageAsyncTest-GetPackageWhenSourceSwitchNotSpecifiedGetPackageTest.ps1GetPackageFromPMCWithListAvailable_ReturnsAvailablePackagesAsyncTest-PipingMultipleProjectsToInstallInstallPackageTest.ps1InstallPackageFromPMCToMultipleProjects_SucceedsAsyncTest-UpdatingPackageWhatIfUpdatePackageTest.ps1UpdatePackageFromPMCWithWhatIf_DoesNotUpdateAsyncTest-UpdatePackageAcceptsSourceNameUpdatePackageTest.ps1UpdatePackageFromPMCToSpecificVersion_UpdatesCorrectlyAsyncTest-UpdateProjectLevelPackageNotInstalledInAnyProjectUpdatePackageTest.ps1Additional improvements made during review:
GetPackageFromPMC_ListsInstalledPackagesAsyncnow assertsGet-Packagereturns empty before any install, then asserts both packages appear after — consolidating the "empty before install" coverage into a single test.InstallPackageFromPMCToMultipleProjects_SucceedsAsyncusesGet-Project -All | Install-Packagepiping syntax, matching the original PS1 behavior.Get-Packagetest assertions use aParseGetPackageTableOutputhelper that returnsList<PmcPackageEntry>withId,Versions, andProjectNameproperties parsed from the PMC fixed-width table output.PR Checklist