Skip to content

Conversation

@daxian-dbw
Copy link
Member

@daxian-dbw daxian-dbw commented Aug 11, 2017

The second round of adding tab completion tests - issue: #4160

30 tests are added to improve the test coverage in CompletionAnalysis.cs

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

Copy link
Member

@adityapatwardhan adityapatwardhan left a comment

Choose a reason for hiding this comment

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

LGTM with minor comment.


AfterAll {
Pop-Location
Remove-Item -Path $tempDir -Recurse -Force
Copy link
Member

@adityapatwardhan adityapatwardhan Aug 11, 2017

Choose a reason for hiding this comment

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

Please add -ErrorAction SilentlyContinue

CommandLine = "Test history completion"
ExecutionStatus = "Stopped"
StartExecutionTime = "8/11/2017 11:04:10 AM"
EndExecutionTime = "8/11/2017 11:05:49 AM"
Copy link
Collaborator

Choose a reason for hiding this comment

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

The dates is not explicitly used but it is culture dependent. Should our tests work under different cultures?

Copy link
Member

Choose a reason for hiding this comment

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

@daxian-dbw Can you address feedback from @iSazonov

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch. Will change to use a DataTime object instead.

@iSazonov
Copy link
Collaborator

LGTM.

@adityapatwardhan adityapatwardhan merged commit a648d4d into PowerShell:master Aug 15, 2017
@daxian-dbw daxian-dbw deleted the tabcompletiontest branch August 15, 2017 23:37
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.

4 participants