Skip to content

Migrate 25 EndToEnd update package tests to Apex - #7716

Merged
zivkan merged 2 commits into
devfrom
dev-zivkan-apex-test-migration
Sep 22, 2026
Merged

zivkan merged 2 commits into
devfrom
dev-zivkan-apex-test-migration

Conversation

@zivkan

@zivkan zivkan commented Sep 17, 2026

Copy link
Copy Markdown
Member

Bug

Towards: https://github.com/NuGet/Client.Engineering/issues/2085

Description

PowerShell Test (Removed) Source File C# Apex Test (Added)
Test-UpdatingPackageInProjectDoesntRemoveFromSolutionIfInUse UpdatePackageTest.ps1 UpdatePackageFromPMCInMultipleProjects_KeepsOldVersionUntilUnusedAsync
Test-UpdatingPackageWithSharedDependency UpdatePackageTest.ps1 UpdatePackageFromPMCWithSharedDependency_UpdatesEntireGraphAsync
Test-UpdatingPackageDependentPackageVersion UpdatePackageTest.ps1 UpdateDependencyFromPMC_UpdatesDependentPackageToCompatibleVersionAsync
Test-UpdatingPackageWithSharedDependencySimple UpdatePackageTest.ps1 UpdatePackageFromPMCWithNewSharedDependency_UpdatesGraphAsync
Test-SubTreeUpdateWithDependencyInUse UpdatePackageTest.ps1 UpdateSubtreeFromPMC_UpdatesOnlySelectedSubtreeAsync (F data row)
Test-ComplexUpdateSubTree UpdatePackageTest.ps1 UpdateSubtreeFromPMC_UpdatesOnlySelectedSubtreeAsync (E data row)
Test-SubTreeUpdateWithConflict UpdatePackageTest.ps1 UpdateSubtreeFromPMCWithConflict_DoesNotChangePackagesAsync
Test-UpdatePackageWithOlderVersionOfSharedDependencyInUse UpdatePackageTest.ps1 UpdatePackageFromPMCWithOlderSharedDependencyInUse_UpdatesToCompatibleVersionAsync
Test-UpdatePackageAcceptsRelativePathSource UpdatePackageTest.ps1 UpdatePackageFromPMCWithRelativeSource_UpdatesPackageAsync (child data row)
Test-UpdatePackageAcceptsRelativePathSource2 UpdatePackageTest.ps1 UpdatePackageFromPMCWithRelativeSource_UpdatesPackageAsync (parent data row)
Test-UpdatePackageInAllProjects UpdatePackageTest.ps1 UpdatePackageFromPMCInAllProjects_UpdatesEveryInstalledVersionAsync
Test-UpdateAllPackagesInSolution UpdatePackageTest.ps1 UpdateAllPackagesFromPMC_UpdatesGraphsAcrossSolutionAsync
Test-UpdatePackageDiamondDependenciesBottomNodeConflictingPackages UpdatePackageTest.ps1 UpdateBottomDependencyFromPMC_UpdatesDiamondGraphAsync
Test-UpdatingDependentPackagesPicksLowestCompatiblePackages UpdatePackageTest.ps1 UpdateDependencyFromPMC_SelectsLowestCompatibleDependentVersionAsync
Test-UpdateAllPackagesInASingleProjectWithMultipleProjects UpdatePackageTest.ps1 UpdateAllPackagesFromPMCInOneProject_LeavesOtherProjectUnchangedAsync (normal data row)
Test-UpdateAllPackagesInASingleProjectWithSafeFlagAndMultipleProjects UpdatePackageTest.ps1 UpdateAllPackagesFromPMCInOneProject_LeavesOtherProjectUnchangedAsync (safe data row)
Test-UpdatePackageWithDependentsThatHaveNoAvailableUpdatesThrows UpdatePackageTest.ps1 UpdatePackageFromPMCWhenDependentHasNoCompatibleUpdate_FailsAsync
Test-UpdatePackageInOneProjectDoesNotCheckAllPackagesInSolution UpdatePackageTest.ps1 UpdateAllPackagesFromPMCInEmptyProject_DoesNotUpdateOtherProjectsAsync
Test-ReinstallPackageInvokeUninstallAndInstallScripts UpdatePackageTest.ps1 ReinstallPackageFromPMC_InvokesUninstallAndInstallScriptsAsync
Test-ReinstallAllPackagesInAProjectInvokeUninstallAndInstallScripts UpdatePackageTest.ps1 ReinstallAllPackagesFromPMCInProject_InvokesEveryUninstallAndInstallScriptAsync
Test-UpdateOnePackageInAllProjectsExecutesInstallPs1OnAllProjects UpdatePackageTest.ps1 UpdatePackageFromPMCInAllProjects_InvokesScriptsForEveryProjectAsync (normal data row)
Test-SafeUpdateOnePackageInAllProjectsExecutesInstallPs1OnAllProjects UpdatePackageTest.ps1 UpdatePackageFromPMCInAllProjects_InvokesScriptsForEveryProjectAsync (safe data row)
Test-UpdateAllPackagesInAllProjectsExecutesInstallPs1OnAllProjects UpdatePackageTest.ps1 UpdateAllPackagesFromPMCInAllProjects_InvokesEveryInstallAndUninstallScriptAsync
Test-ReinstallPackageInAllProjectsInvokeUninstallAndInstallScripts UpdatePackageTest.ps1 ReinstallPackageFromPMCInAllProjects_InvokesScriptsForEveryProjectAsync
Test-ReinstallAllPackagesInAllProjectsInvokeUninstallAndInstallScripts UpdatePackageTest.ps1 ReinstallAllPackagesFromPMCInAllProjects_InvokesEveryUninstallAndInstallScriptAsync

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@zivkan
zivkan marked this pull request as ready for review September 21, 2026 03:05
@zivkan
zivkan requested a review from a team as a code owner September 21, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants