PowerShell / PowerShell/PSScriptAnalyzer
Being able to run tests by setting $PsModulePath instead of XCopy to one of those folders
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- C#
- Estrelas
- 2.2k
- Forks
- 415
- Merge médio
- 13h 1min
- PRs com merge (30d)
- 2
Descrição
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).
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece pela configuração de testes que copia a pasta PSScriptAnalyzer da pasta out e pela falha em Tests/Engine/LibraryUsage.tests.ps1 na linha 214. Reproduza a falha do Windows PowerShell e, em seguida, verifique se a execução dos testes usa a pasta out no início de $env:PSModulePath e se a suíte de testes passa sem copiar o módulo.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- powershell
- Domínio
- testing-qa, tooling
- Tipo de issue
- Refatoração
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 38/100