Skip to content

tab completion test doesn't handle multiple matches - #8891

Merged
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
JamesWTruher:tabcompletiontestfix01
Mar 11, 2019
Merged

Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
JamesWTruher:tabcompletiontestfix01

Conversation

@JamesWTruher

@JamesWTruher James Truher (JamesWTruher) commented Feb 13, 2019 •

Copy link
Copy Markdown
Collaborator

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
$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
Copy Markdown
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 Ilya (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
Copy Markdown
Collaborator

Is the PR ready to merge?

@daxian-dbw Dongbo Wang (daxian-dbw) added this to the 6.2.0 milestone Mar 11, 2019
@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit e605fbd into PowerShell:master Mar 11, 2019
@iSazonov

Copy link
Copy Markdown
Collaborator

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

@daxian-dbw

Copy link
Copy Markdown
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.

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