Skip to content

Remove duplicate E2E tests and migrate BuildIntegrated tests to Apex - #7403

Merged
nkolev92 merged 5 commits into
devfrom
dev-nkolev92-removeTests
May 26, 2026
Merged

nkolev92 merged 5 commits into
devfrom
dev-nkolev92-removeTests

Conversation

@nkolev92

@nkolev92 nkolev92 commented May 20, 2026 •

Copy link
Copy Markdown
Member

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.cs in the regular Apex project.

Removed E2E tests (duplicates within E2E or already in Apex):

  • Test-UwpPackageRefClassLibInstallPackage — duplicate of Test-BuildIntegratedInstallPackage within E2E
  • Test-GetPackageForProjectReturnsCorrectPackages2 — covered by Apex GetPackageFromPMCForProject_ReturnsCorrectPackagesAsync
  • Test-GetPackageWithoutProjectNameReturnsInstalledPackagesInTheSolution — covered by Apex GetPackageFromPMC_ListsInstalledPackagesAsync
  • Test-FindPackageByIdExactMatch — covered by Apex VerifyCmdFindPackageExactMatchInPMC
  • Test-BuildIntegratedUpdateNonExistantPackage — covered by Apex UpdatePackageFromPMCNotInstalled_Fails
  • Test-BuildIntegratedUninstallNonExistantPackage — covered by Apex UninstallPackageFromPMCNotInstalled_Fails

Migrated E2E tests to Apex PackageReferenceTestCase:

  • Test-BuildIntegratedInstallPackage → InstallPackage_PMC
  • Test-BuildIntegratedUpdatePackage → UpdatePackage_PMC
  • Test-BuildIntegratedUninstallPackage → UninstallPackage_PMC
  • Test-BuildIntegratedInstallMultiplePackages → InstallMultiplePackages_PMC
  • Test-BuildIntegratedInstallAndUninstallAll → InstallAndUninstallAllPackages_PMC
  • Test-BuildIntegratedCleanDeleteCacheFile + Test-BuildIntegratedLegacyCleanDeleteCacheFile → CleanDeletesCacheFile
  • Test-BuildIntegratedRebuildDoesNotDeleteCacheFile + Test-BuildIntegratedLegacyRebuildDoesNotDeleteCacheFile → RebuildDoesNotDeleteCacheFile

All tests run with both ConsoleApplication (legacy PR via SetPackageFormatToPackageReference()) and NetCoreConsoleApp (SDK-style), also covering Test-NetCoreConsoleAppClean and Test-NetCoreConsoleAppRebuildDoesNotDeleteCacheFile that were removed in PR #7246.

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.

nkolev92 and others added 4 commits May 20, 2026 13:31
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]>
@nkolev92
nkolev92 marked this pull request as ready for review May 21, 2026 22:54
@nkolev92
nkolev92 requested a review from a team as a code owner May 21, 2026 22:54
@nkolev92

Copy link
Copy Markdown
Member Author

I verified the new tests are passing.
It's reporting more failures than before, but it's all flakiness

@nkolev92
nkolev92 enabled auto-merge (squash) May 26, 2026 22:38
@nkolev92
nkolev92 merged commit 7df86b6 into dev May 26, 2026
5 of 18 checks passed
@nkolev92
nkolev92 deleted the dev-nkolev92-removeTests branch May 26, 2026 22:49
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.

Test UpdateAllReinstall_WithPackageReferenceProject_WarnsAsync constantly fail Test: E2E test FindPackageByIdExactMatch is flaky

2 participants