Skip to content

Migrate 11 PowerShell E2E tests to C# Apex tests and remove migrated - #7327

Merged
nkolev92 merged 1 commit into
devfrom
dev-nkolev92/migrate-end-to-end-tests
Apr 29, 2026
Merged

nkolev92 merged 1 commit into
devfrom
dev-nkolev92/migrate-end-to-end-tests

Conversation

@nkolev92

@nkolev92 nkolev92 commented Apr 28, 2026 •

Copy link
Copy Markdown
Member

Bug

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

Description

Migrates PowerShell E2E tests to C# Apex tests in NuGetConsoleTestCase.cs and removes the migrated PS tests.

PowerShell Test (Removed) Source File C# Apex Test (Added)
Test-GetPackageThrowsWhenSourceIsInvalid GetPackageTest.ps1 GetPackageFromPMCWithInvalidSource_Fails
Test-GetPackageForProjectThrowIfProjectNameIsInvalid GetPackageTest.ps1 GetPackageFromPMCWithInvalidProjectName_Fails
Test-InstallPackageWithFtpProtocolSource InstallPackageTest.ps1 InstallPackageFromPMCWithFtpSource_Fails
Test-PackageInstallWithFileUri InstallPackageTest.ps1 InstallPackageFromPMCWithFileUriSource_SucceedsAsync
Test-PackageInstallDowngradeWhatIf InstallPackageTest.ps1 InstallPackageFromPMCWithWhatIfDowngrade_DoesNotDowngradeAsync
Test-InstallLatestVersionWorksCorrectly InstallPackageTest.ps1 InstallPackageFromPMCWithoutVersion_InstallsLatestStableAsync
Test-InstallLatestVersionWorksCorrectlyWithPrerelease InstallPackageTest.ps1 InstallPackageFromPMCWithPrerelease_InstallsLatestPrereleaseAsync
Test-UninstallPackageWhatIf UninstallPackageTest.ps1 UninstallPackageFromPMCWithWhatIf_DoesNotUninstallAsync
Test-UninstallPackageThatIsNotInstalledThrows UninstallPackageTest.ps1 UninstallPackageFromPMCNotInstalled_Fails
Test-UninstallPackageThatIsInstalledInAnotherProjectThrows UninstallPackageTest.ps1 (removed; covered by UninstallPackageFromPMCNotInstalled_Fails)
Test-UpdateWithoutPackageInstalledThrows UpdatePackageTest.ps1 UpdatePackageFromPMCNotInstalled_Fails
Test-UpdatePackageThrowsWhenSourceIsInvalid UpdatePackageTest.ps1 UpdatePackageFromPMCWithInvalidSource_FailsAsync

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
nkolev92 marked this pull request as ready for review April 28, 2026 18:04
@nkolev92
nkolev92 requested a review from a team as a code owner April 28, 2026 18:04
@nkolev92

Copy link
Copy Markdown
Member Author

All these tests are passing.

I'm just assigning agents to do it in batches for review purposes.

@nkolev92
nkolev92 requested review from donnie-msft and removed request for kartheekp-ms April 28, 2026 18:07
@nkolev92
nkolev92 merged commit 136cc07 into dev Apr 29, 2026
18 of 19 checks passed
@nkolev92
nkolev92 deleted the dev-nkolev92/migrate-end-to-end-tests branch April 29, 2026 15:36
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.

4 participants