Skip to content

tab completion test doesn't handle multiple matches#8891

Merged
daxian-dbw merged 1 commit intoPowerShell:masterfrom
JamesWTruher:tabcompletiontestfix01
Mar 11, 2019
Merged

tab completion test doesn't handle multiple matches#8891
daxian-dbw merged 1 commit intoPowerShell:masterfrom
JamesWTruher:tabcompletiontestfix01

Conversation

@JamesWTruher
Copy link
Collaborator

@JamesWTruher JamesWTruher commented Feb 13, 2019

PR Summary

Some environments have multiple matches, so some TabCompletion tests may fail because of an assumption that there is only 1 possible match. I'm seeing this specifically on the Linux container validation runs, but it seems like it would be general problem.

PR Context

PR Checklist

…defined, harden the test to handle multiple matches
@JamesWTruher JamesWTruher added the WG-Quality-Test issues in a test or in test infrastructure label Feb 13, 2019
$res = TabExpansion2 -inputScript $inputStr -cursorColumn $inputStr.Length
$res.CompletionMatches.Count | Should -BeGreaterThan 0
$res.CompletionMatches[0].CompletionText | Should -BeExactly $expected
$res.CompletionMatches.CompletionText | Should -Contain $expected
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is order/position important in the test?

@iSazonov iSazonov added CL-Test Indicates that a PR should be marked as a test change in the Change Log and removed WG-Quality-Test issues in a test or in test infrastructure labels Feb 14, 2019
@iSazonov
Copy link
Collaborator

iSazonov commented Mar 8, 2019

Is the PR ready to merge?

@daxian-dbw daxian-dbw added this to the 6.2.0 milestone Mar 11, 2019
@daxian-dbw daxian-dbw merged commit e605fbd into PowerShell:master Mar 11, 2019
@iSazonov
Copy link
Collaborator

@daxian-dbw Please clarify about setting a milestone to merged PR. Is there new guidelines?

@daxian-dbw
Copy link
Member

After RC release, we created the v6.2.0 branch, which will be the branch to use for 6.2.0 GA release.
Not all commits after RC can make to the GA, so we will triage what PRs can be take to the 6.2.0 branch (very low risk, no product code change in principle). For those PRs that will be take to 6.2.0 branch, we mark it with the 6.2.0 milestone.

@JamesWTruher JamesWTruher deleted the tabcompletiontestfix01 branch September 23, 2023 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Test Indicates that a PR should be marked as a test change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants