Repository navigation
Remove duplicate E2E tests and migrate BuildIntegrated tests to Apex - #7403
Merged
Merged
Conversation
Remove tests that are duplicates within E2E or already covered by Apex: - Test-UwpPackageRefClassLibInstallPackage (duplicate of Test-BuildIntegratedInstallPackage) - Test-GetPackageForProjectReturnsCorrectPackages2 (covered by Apex GetPackageFromPMCForProject_ReturnsCorrectPackagesAsync) - Test-GetPackageWithoutProjectNameReturnsInstalledPackagesInTheSolution (covered by Apex GetPackageFromPMC_ListsInstalledPackagesAsync) - Test-FindPackageByIdExactMatch (covered by Apex VerifyCmdFindPackageExactMatchInPMC) Fixes: NuGet/Home#10066 Progress: NuGet/Client.Engineering#2085 Co-authored-by: Copilot <[email protected]>
Migrate Test-BuildIntegratedInstallPackage, Test-BuildIntegratedUninstallPackage, and Test-BuildIntegratedUpdatePackage from E2E to Apex Daily as legacy PackageReference tests using ConsoleApplication + SetPackageFormatToPackageReference. The MAUI template variants are commented out due to UAC prompt issues. Co-authored-by: Copilot <[email protected]>
Migrate Test-BuildIntegratedInstallMultiplePackages, Test-BuildIntegratedInstallAndUninstallAll, Test-BuildIntegratedCleanDeleteCacheFile, Test-BuildIntegratedLegacyCleanDeleteCacheFile, Test-BuildIntegratedRebuildDoesNotDeleteCacheFile, and Test-BuildIntegratedLegacyRebuildDoesNotDeleteCacheFile from E2E to Apex PackageReferenceTestCase. Also removes Test-BuildIntegratedUpdateNonExistantPackage and Test-BuildIntegratedUninstallNonExistantPackage which are already covered by UpdatePackageFromPMCNotInstalled_Fails and UninstallPackageFromPMCNotInstalled_Fails in Apex. Tests now run with both ConsoleApplication (legacy PR) and NetCoreConsoleApp (SDK-style), covering the Test-NetCoreConsoleAppClean and Test-NetCoreConsoleAppRebuildDoesNotDeleteCacheFile scenarios that were removed in PR #7246. Co-authored-by: Copilot <[email protected]>
Member
Author
|
I verified the new tests are passing. |
jeffkl
approved these changes
May 26, 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
Fixes: NuGet/Home#10066
Fixes: NuGet/Home#12899
Progress: https://github.com/NuGet/Client.Engineering/issues/2085
Description
Remove duplicate E2E tests that are already covered by Apex, and migrate BuildIntegrated tests to a new
PackageReferenceTestCase.csin the regular Apex project.Removed E2E tests (duplicates within E2E or already in Apex):
Test-UwpPackageRefClassLibInstallPackage— duplicate ofTest-BuildIntegratedInstallPackagewithin E2ETest-GetPackageForProjectReturnsCorrectPackages2— covered by ApexGetPackageFromPMCForProject_ReturnsCorrectPackagesAsyncTest-GetPackageWithoutProjectNameReturnsInstalledPackagesInTheSolution— covered by ApexGetPackageFromPMC_ListsInstalledPackagesAsyncTest-FindPackageByIdExactMatch— covered by ApexVerifyCmdFindPackageExactMatchInPMCTest-BuildIntegratedUpdateNonExistantPackage— covered by ApexUpdatePackageFromPMCNotInstalled_FailsTest-BuildIntegratedUninstallNonExistantPackage— covered by ApexUninstallPackageFromPMCNotInstalled_FailsMigrated E2E tests to Apex
PackageReferenceTestCase:Test-BuildIntegratedInstallPackage→InstallPackage_PMCTest-BuildIntegratedUpdatePackage→UpdatePackage_PMCTest-BuildIntegratedUninstallPackage→UninstallPackage_PMCTest-BuildIntegratedInstallMultiplePackages→InstallMultiplePackages_PMCTest-BuildIntegratedInstallAndUninstallAll→InstallAndUninstallAllPackages_PMCTest-BuildIntegratedCleanDeleteCacheFile+Test-BuildIntegratedLegacyCleanDeleteCacheFile→CleanDeletesCacheFileTest-BuildIntegratedRebuildDoesNotDeleteCacheFile+Test-BuildIntegratedLegacyRebuildDoesNotDeleteCacheFile→RebuildDoesNotDeleteCacheFileAll tests run with both
ConsoleApplication(legacy PR viaSetPackageFormatToPackageReference()) andNetCoreConsoleApp(SDK-style), also coveringTest-NetCoreConsoleAppCleanandTest-NetCoreConsoleAppRebuildDoesNotDeleteCacheFilethat were removed in PR #7246.PR Checklist