Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Increase test coverage for Rename-Item and Move-Item#4329

Merged
adityapatwardhan merged 6 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
jeffbi:tests-4148Copy head branch name to clipboard
Aug 2, 2017
Merged

Increase test coverage for Rename-Item and Move-Item#4329
adityapatwardhan merged 6 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
jeffbi:tests-4148Copy head branch name to clipboard

Conversation

@jeffbi

@jeffbi jeffbi commented Jul 24, 2017

Copy link
Copy Markdown

Addresses parts of #4148.

@dantraMSFT dantraMSFT left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggest using -ErrorAction Stop for the operations that you expect to succeed. It will be clearer than diagnosing why the Should statement failed.

@jeffbi

jeffbi commented Jul 25, 2017

Copy link
Copy Markdown
Author

Fixed.

@adityapatwardhan adityapatwardhan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Minor comment.

"$destDir/$testDir/$testFile" | Should Exist
}

It "Verity Move-Item will not move to an existing file" {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Typo in Verity -> Verify

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed.

$testDir | Should Exist
}

It "Verify Move-Item as substitue for Rename-Item" {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Typo: substitute

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed

@SteveL-MSFT

Copy link
Copy Markdown
Member

Add test for Access Denied

@jeffbi

jeffbi commented Aug 1, 2017

Copy link
Copy Markdown
Author

Added tests for access-denied. @SteveL-MSFT thanks for the pointer.

@SteveL-MSFT SteveL-MSFT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@adityapatwardhan adityapatwardhan merged commit 8f9aed8 into PowerShell:master Aug 2, 2017
@jeffbi jeffbi deleted the tests-4148 branch August 2, 2017 18:22
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.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.