Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

(#3364) Remove unusable tab completion tests #3552

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

vexx32
Copy link
Member

@vexx32 vexx32 commented Nov 6, 2024

Description Of Changes

Remove tab completion tests that are version dependent and aren't really checking anything of particular value to the functionality being tested.

Motivation and Context

These tests are verifying the old method and are targeting an implementation detail, rather than actually checking the tab completion results, which the following tests do anyway.

As such, we're best off removing them as there is no direct way to check the same things for the Register-ArgumentCompleter method. The remaining tests for the tab completion results themselves cover this adequately already.

Testing

  1. Run .\Invoke-Tests.ps1 -Tag Profile

Operating Systems Testing

Win10

Change Types Made

  • Bug fix (non-breaking change).
  • Feature / Enhancement (non-breaking change).
  • Breaking change (fix or feature that could cause existing functionality to change).
  • Documentation changes.
  • PowerShell code changes.

Change Checklist

  • Requires a change to the documentation.
  • Documentation has been updated.
  • Tests to cover my changes, have been added.
  • All new and existing tests passed?
  • PowerShell code changes: PowerShell v3 compatibility checked?

Related Issue

#3364

@vexx32 vexx32 requested a review from corbob November 6, 2024 16:35
@vexx32 vexx32 force-pushed the fix-tab-completion-tests branch from 140b1fe to 14de0ca Compare November 6, 2024 16:36
@vexx32 vexx32 changed the title (#3364) Skip unusable tab completion tests (#3364) Remove unusable tab completion tests Nov 6, 2024
These tests are verifying the old method and are targeting an
implementation detail, rather than actually checking the tab completion
results, which the following tests do anyway.

As such, we're best off removing them as there is no direct way to check
the same things for the Register-ArgumentCompleter method. The tests for
the tab completion results themselves cover this adequately already.
@vexx32 vexx32 force-pushed the fix-tab-completion-tests branch from 14de0ca to 109511d Compare November 6, 2024 16:38
Copy link
Member

@corbob corbob left a comment

Choose a reason for hiding this comment

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

LGTM. These tests went from failing to passing on my local Test Kitchen runs.

@corbob corbob merged commit bb8b8a5 into chocolatey:develop Nov 6, 2024
5 checks passed
@vexx32 vexx32 deleted the fix-tab-completion-tests branch November 6, 2024 19:17
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants