PowerShell / PowerShell/PSScriptAnalyzer
Investigate/Fix test failure on PowerShell Core
Aberta
Ninguém assumiu esta issue ainda.
Area - Build
Area - Rules
- Linguagem predominante
- C#
- Estrelas
- 2.2k
- Forks
- 415
- Merge médio
- 13h 1min
- PRs com merge (30d)
- 2
Descrição
- The
"suggests corrections for AliasesToExport with wildcardofUseManifestExportFieldsis currently set as pending when tests are being run using the coreclr.
This tests needs to be looked into and possibly fixed.
The test is here:
https://github.com/PowerShell/PSScriptAnalyzer/blob/021711eae27a2bd00165f30c6c568a78f448870a/Tests/Rules/UseToExportFieldsInManifest.tests.ps1#L86 - There are 9 test failures using PowerShell Core on Windows and Ubuntu but they do not fail in AppVeyor for some reason. Those tests were always failing, even when going back to an old commit like
9e37dd34e8564dc7470dda1e0d2596de37bcd679in January. Therefore those failures are to be considered technical debt. Until we know why AppVeyor lets them pass and fix them afterwards, we have to more diligent with running tests locally or on VSTS using PowerShell Core to make sure that we do not introduce regression. The test failures are:


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 por Tests/Rules/UseToExportFieldsInManifest.tests.ps1 no teste referenciado e execute a suíte de testes usando PowerShell Core no Windows e no Ubuntu. Compare as falhas relatadas com os resultados do AppVeyor e determine se as nove falhas listadas são problemas de teste ou de ambiente. Considera-se concluído quando as falhas estiverem explicadas e os testes afetados tiverem sido corrigidos ou atualizados adequadamente.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- powershell
- Domínio
- testing-qa
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100