Skip to content

Add tests for TabCompletion for various input types #4160

Closed

Description

Add tests for TabCompletion for various input types

Related code coverage report:

https://codecov.io/gh/PowerShell/PowerShell/tree/9e41c647a9407e05d86f4971a6bd25719a7130d0/src/System.Management.Automation/engine/CommandCompletion

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.0-beta
PSEdition                      Core
GitCommitId                    v6.0.0-beta.3
OS                             Microsoft Windows 10.0.16204
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. added
    WG-Quality-Test
    on Jul 1, 2017
  2. added this to the milestone on Jul 1, 2017
  3. daxian-dbw commented on Jul 27, 2017

    @daxian-dbw
    Member

    Summary of missing areas

    CommandCompletion.cs

    • negatives cases/error handling (if some of these can't be hit, consider converting to asserts)
    • in debugger
    • nested runspace/remote runspace
    • getting next result including wrap around
    • user overridden tabexpansion
    • legacy tabexpansion
    • remove PSv2 code PSv2CompletionCompleter is for tab completion in a remote session that is from win8+ to win7, so it needs to be kept.
    • adding/handling quotes

    CompletionAnalysis.cs

    • cursor position (you have some of these covered, not sure if all)
    • filename after redirection
    • line continuation
    • DSC resource
    • Cursor on special tokens, like comma and minus
    • using module <module-name/file-completion>
    • Enum property value of DSC Resource

    CompletionCompleters.cs

    • fully qualified cmdlet
    • remove workflow code
    • complete module name
    • import-dscresource
    • positional parameter

    CompletionResult.cs

    • s_nullInstance
    • Exceptions

    ExtensibleCompletion.cs

    • Exceptions
    • Register-ArgumentCompleter with CommandName = [string]::empty

    PseudoParameterBinder.cs

    • remove workflow related code
    • examine the code to see to find out specific missing areas
  4. SteveL-MSFT commented on Jul 27, 2017

    @SteveL-MSFT
    Member

    Dongbo Wang (@daxian-dbw) is the PSv2CompletionCompleter targeting PSv2 on the remote side?

  5. daxian-dbw commented on Jul 27, 2017

    @daxian-dbw
    Member

    Yes, it's for tab completion in a remote session from PSv3+ to PSv2.

  6. SteveL-MSFT commented on Jul 28, 2017

    @SteveL-MSFT
    Member

    Since we've formally deprecated v2, I'm wondering if we should keep this. cc Joey Aiello (@joeyaiello)

  7. added
    Resolution-Fixed
    and removed
    Resolution-Fixed
    on Sep 11, 2017
  8. modified the milestones: , on Oct 12, 2017
  9. SteveL-MSFT commented on Oct 12, 2017

    @SteveL-MSFT
    Member

    I think the remaining items can be pushed to MQ

  10. added
    Issue-Enhancement
    on Apr 25, 2018
  11. modified the milestones: , Future on Jun 21, 2018
  12. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  13. added
    Resolution-No Activity
    on Nov 16, 2023
  14. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  15. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  16. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-EnhancementResolution-No ActivityWG-Quality-Test

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions