PowerShell / PowerShell/PSScriptAnalyzer

Being able to run tests by setting $PsModulePath instead of XCopy to one of those folders

オープン
#965 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Area - Build
主要言語
C#
スター
2.2k
フォーク
414
平均マージ
13時間 1分
マージ済み PR(30日)
2

説明

As discussed internally. Instead of doing a Copy-Item of the PSScriptAnalyer folder in the out folder to the first $env:PSModulePath folder (where it can override an existing installation due to the version number being the same), we should just be able to just set add the out folder to the beginning of the $env:PSModulePath variables during test execution. However, this does not even work for Windows PowerShell at the moment due to the LibraryUsageTests (I get one failure here).

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

out フォルダーから PSScriptAnalyzer フォルダーをコピーするテスト設定と、Tests/Engine/LibraryUsage.tests.ps1 の 214 行目で発生する失敗から始めます。Windows PowerShell での失敗を再現し、その後、テストの実行で $env:PSModulePath の先頭にある out フォルダーが使用され、モジュールをコピーしなくてもテストスイートがパスすることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
powershell
領域
testing-qa, tooling
issue の種類
リファクタリング
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。