Repository navigation
Migrate NetCore E2E tests from PowerShell to Apex - #7246
Conversation
|
There are some build failures in https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=13714875&view=logs&j=3dc8fd7e-4368-5a92-293e-d53cefc8c4b3&t=28a433a8-2ece-5e8d-89c3-cb5517da6c35.
|
Added missing |
|
@copilot Rebase on top of dev. |
I've rebased locally on top of |
0ba7c44 to
5a68ca1
Compare
|
Rebased |
The VS-vs-MSBuild no-op tests require that both VS internal restore and external MSBuild.exe use the same NuGet assemblies. Apex deploys the dev VSIX only to the experimental instance hive, but MSBuild.exe at <VSRoot>/MSBuild/Current/bin/ still uses the shipped NuGet code. This version mismatch causes the no-op assertion to fail, so these tests must remain as PS E2E tests where the VSIX is fully installed. 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]>
…7403) * Remove duplicate E2E tests covered by Apex 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 BuildIntegrated install/update/uninstall tests to Apex 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]> * clenaup * Migrate cache file and multi-package tests from E2E to Apex 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]> * update skill with learnings --------- Co-authored-by: Copilot <[email protected]>
Progress: https://github.com/NuGet/Client.Engineering/issues/2085
Description
Migrate and clean up PowerShell E2E tests from
test/EndToEnd/tests/. Some tests are migrated to Apex, some are deleted as duplicates of existing Apex tests, some are deleted as obsolete, and some are kept as PS because they cannot work correctly in the Apex experimental-instance environment.Note - This does not mean, at this point, we are unable to migrate all of our tests to Apex. We need to figure out a workaround to test these scenarios, as cross tool no-op is a critical performance feature.
Test migration table
NetCoreProjectTest.ps1Test-NetCoreProjectSystemCacheUpdateEventISolutionManagerevent subscription not feasible in ApexTest-NetCoreConsoleAppCleanVerifyCacheFileInsideObjFolderin Apex Daily (NuGetConsoleTestCase.cs)Test-NetCoreConsoleAppRebuildDoesNotDeleteCacheFileVerifyCacheFileInsideObjFolderin Apex Daily (NuGetConsoleTestCase.cs)Test-NetCoreVSandMSBuildNoOpMSBuild.exestill uses shipped NuGet assemblies, causing version mismatch that breaks no-op assertionTest-NetCoreTargetFrameworksVSandMSBuildNoOpTest-NetCoreMultipleTargetFrameworksVSandMSBuildNoOpTest-NetCoreToolsVSandMSBuildNoOpServicesTest.ps1Test-MigrateVanillaUwpProjectJsonToPackageReferenceOther changes
PackageReferenceClassLibraryandPackageReferenceClassLibraryWithLockFileE2E project templatesPR Checklist