Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove extraneous import-module commands in tests #962
Conversation
|
Looks good, I only left a minor and optional style comment. I also ran the tests of your branch on my machine on PS 5.1 and 6.0 (on Windows) and could not notice any regression. Although you marked it as |
| Import-Module -Verbose PSScriptAnalyzer | ||
| $script:skipTest = $true | ||
| if ($PSVersionTable.PSVersion -ge [Version]'5.0.0') { | ||
| $script:skipTest = $false |
This comment has been minimized.
This comment has been minimized.
bergmeister
Apr 5, 2018
Collaborator
Maybe use a more descriptive variable name like skipTestForv3andv4?
This comment has been minimized.
This comment has been minimized.
The expectation is that these tests are run as part of the test harness, the re-importing of the module is unneeded
31ab8d5
to
b478613
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
JamesWTruher commentedApr 5, 2018
PR Summary
The expectation is that these tests are run as part of the test harness, the re-importing of the module is unneeded. Also, module autoloading should take care of this in any event.
PR Checklist
Note: Tick the boxes below that apply to this pull request by putting an
xbetween the square brackets. Please mark anything not applicable to this PRNA.WIP:to the beginning of the title and remove the prefix when the PR is ready