X Tutup
The Wayback Machine - https://web.archive.org/web/20200918094425/https://github.com/PowerShell/PSScriptAnalyzer/pull/961
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move common test code into AppVeyor module #961

Merged
merged 6 commits into from Apr 9, 2018

Conversation

@bergmeister
Copy link
Collaborator

bergmeister commented Apr 4, 2018

PR Summary

Move test code into module function. To make this working, I had to fix some tests due to bugs in PowerShell. I left remarks about that in the already open issue PowerShell/PowerShell#6378
Replacing the Copy-Item step with setting environment variables needs to be part of a different PR as it is currently not possible due to the way how the library usage tests work and therefore would require more refactoring.

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets. Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
    • Use the present tense and imperative mood when describing your changes
  • Summarized changes
  • NA User facing documentation needed
  • Change is not breaking
  • NA Make sure you've added a new test if existing tests do not effectively test the code changed
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready
@bergmeister bergmeister changed the title WIP Move test code of Appveyor build into its own function to enforce correct test behaviour WIP Move test code of Appveyor build into its own function to show different test behaviour Apr 4, 2018
bergmeister added 4 commits Apr 7, 2018
…cal scope when being executed inside a module
…erence in module again
@bergmeister bergmeister removed the in progress label Apr 7, 2018
@bergmeister bergmeister changed the title WIP Move test code of Appveyor build into its own function to show different test behaviour Move common test code into AppVeyor module Apr 7, 2018
@bergmeister bergmeister requested a review from JamesWTruher Apr 7, 2018
@bergmeister bergmeister self-assigned this Apr 7, 2018
Copy link
Member

JamesWTruher left a comment

this is certainly tidier!

@JamesWTruher JamesWTruher merged commit ac707f8 into PowerShell:development Apr 9, 2018
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
license/cla All CLA requirements met.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.
X Tutup