Skip to content

Migrate 10 end to end tests to apex - #7222

Merged
nkolev92 merged 7 commits into
devfrom
dev-nkolev92-migrateE2Etests
Mar 26, 2026
Merged

nkolev92 merged 7 commits into
devfrom
dev-nkolev92-migrateE2Etests

Conversation

@nkolev92

@nkolev92 nkolev92 commented Mar 20, 2026 •

Copy link
Copy Markdown
Member

Bug

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

Description

I've been using copilot CLI to migrate APEX tests.

My goal is to actually be able to issue this assignment via an issue to migrate groups of tests, so I had it write copilot instructions to help it migrate more efficiently.
I wouldn't want these tests to be migrated all at once, I'd want to do it in stages to minimize risk.
I worked with copilot to get it write insturctions for migration that should hopefully improve accuracy.

PS Test Apex Method Scenario
Test-InstallPackageWithInvalidAbsoluteLocalSource InstallPackageFromPMCWithInvalidAbsoluteLocalSource_Fails Non-existent absolute path → "Source not found"
Test-InstallPackageWithValidAbsoluteLocalSource InstallPackageFromPMCWithValidAbsoluteLocalSource_PackageNotFound_Fails Existing dir, no package → "Unable to find package"
Test-InstallPackageWithInvalidRelativeLocalSource InstallPackageFromPMCWithInvalidRelativeLocalSource_Fails Non-existent relative path → "Source not found"
Test-InstallPackageWithValidRelativeLocalSource InstallPackageFromPMCWithValidRelativeLocalSource_PackageNotFound_Fails Valid relative path, no package → "Unable to find package"
Test-InstallPackageWithInvalidHttpSource InstallPackageFromPMCWithInvalidHttpSource_Fails http://example.com → not a NuGet feed
Test-InstallPackageWithIncompleteHttpSource InstallPackageFromPMCWithIncompleteHttpSource_Fails http:// → "Source not found"
Test-InstallPackageWithInvalidKnownSource InstallPackageFromPMCWithInvalidKnownSource_Fails nuget.random → "Source not found"
Test-InstallPackageThrowsWhenSourceIsInvalid InstallPackageFromPMCWithInvalidSourceFormat_Fails d:package → "Unsupported type of source"
Test-PackageInstallWhatIf InstallPackageFromPMCWithWhatIf_DoesNotInstallPackageAsync -WhatIf doesn't install

Either way, this migrates 10 tests.

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 added the Engineering Changes related to the build infrastructure of the repo and that do not change product code label Mar 24, 2026
@nkolev92
nkolev92 marked this pull request as ready for review March 24, 2026 21:23
@nkolev92
nkolev92 requested a review from a team as a code owner March 24, 2026 21:23
@nkolev92 nkolev92 changed the title Migrate 11 end to end tests to apex Migrate 10 end to end tests to apex Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Engineering Changes related to the build infrastructure of the repo and that do not change product code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants