Skip to content

Add install, uninstall gate tests#7265

Draft
Nigusu-Allehu wants to merge 5 commits intodevfrom
dev-nyenework-add-gate-tests
Draft

Add install, uninstall gate tests#7265
Nigusu-Allehu wants to merge 5 commits intodevfrom
dev-nyenework-add-gate-tests

Conversation

@Nigusu-Allehu
Copy link
Copy Markdown
Member

@Nigusu-Allehu Nigusu-Allehu commented Apr 8, 2026

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/3725
Related: https://github.com/NuGet/Client.Engineering/issues/3543

Description

Previously we added a drop for that will be used by the gate tests: #7247. And the drop has a runsetting that specifies a test catagory "Gate". This PR adds more tests to that catagory.

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.

@Nigusu-Allehu Nigusu-Allehu self-assigned this Apr 8, 2026
@Nigusu-Allehu Nigusu-Allehu changed the title Add search, install, uninstall gate tests Add Restore, install, uninstall gate tests Apr 8, 2026
@Nigusu-Allehu Nigusu-Allehu changed the title Add Restore, install, uninstall gate tests Add install, uninstall gate tests Apr 8, 2026
public async Task InstallPackageToNetCoreProjectFromUI_VerifiesRestore()
{
// Arrange
using (var testContext = new ApexTestContext(VisualStudio, ProjectTemplate.NetStandardClassLib, Logger, addNetStandardFeeds: true))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This adds nuget.org, so not ideal.
Maybe we try to add tests that do not depend on nuget.org

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I didn't know we did that. Not sure why we are doing this within the tests. I would have expected the testing VS to have these files already. Removed it to see what happens

There is similar tests i found in

public async Task InstallPackageToSDKBasedProjectFromUI(ProjectTemplate projectTemplate)
They also use nuget.org to download net standard files.

[TestMethod]
[Timeout(DefaultTimeout)]
[TestCategory("Gate")]
public async Task InstallPackageToNetCoreProjectFromUI_VerifiesRestore()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's also probably a matching test for this.

I'd be surprised if there isn't.

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.

2 participants