Tests fail on main branch
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 68/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- powershell
- Domínio
- testing-qa
Direção de pesquisa
Comece por syntax_test_TheBigTestFile.ps1, que informa as falhas nas linhas 114 e 117, e rastreie os escopos esperados para $error e $home nos testes da gramática de PowerShell. Execute .\build.ps1 -Test para reproduzir; o trabalho estará concluído quando ambas as variáveis receberem o escopo esperado support.constant.variable.powershell e a suíte de testes passar.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
Using the most current LTS version of NodeJS (26.13.0) and the current main branch, run
.\build.ps1 -Test
Expected behavior
Finished in 6.121 seconds
382 tests, 3673 assertions, 0 failures, 0 skipped
Actual behavior
PowerShell Grammar
Automated tests
syntax_test_TheBigTestFile.ps1
[-] It should parse line 114: $error
Expected to find support.constant.variable.powershell at 114:3,
instead found source.powershell, variable.other.constant.powershell
[-] It should parse line 117: $home
Expected to find support.constant.variable.powershell at 117:3,
instead found source.powershell, variable.other.constant.powershell
Finished in 6.121 seconds
382 tests, 3673 assertions, 2 failures, 0 skipped
Error details
Exception :
Type : System.Management.Automation.RuntimeException
ErrorRecord :
Exception :
Type : System.Management.Automation.ParentContainsErrorRecordException
Message : One or more tests failed.
HResult : -2146233087
CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
FullyQualifiedErrorId : RuntimeException
WasThrownFromThrowStatement : True
Message : One or more tests failed.
HResult : -2146233087
TargetObject : One or more tests failed.
CategoryInfo : OperationStopped: (One or more tests failed.:String) [], RuntimeException
FullyQualifiedErrorId : One or more tests failed.
InvocationInfo :
ScriptLineNumber : 89
OffsetInLine : 13
HistoryId : 42
ScriptName : C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools\build-helpers.ps1
Line : throw "One or more tests failed."
Statement : throw "One or more tests failed."
PositionMessage : At C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools\build-helpers.ps1:89 char:13
+ throw "One or more tests failed."
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PSScriptRoot : C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools
PSCommandPath : C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools\build-helpers.ps1
CommandOrigin : Internal
ScriptStackTrace : at RunSpecs, C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools\build-helpers.ps1: line
89
at <ScriptBlock>, C:\Users\bcuneo\source\bryancuneo\EditorSyntax\build.ps1: line 69
at <ScriptBlock>, <No file>: line 1
Environment data
Name Value
---- -----
PSVersion 7.6.9
PSEdition Core
GitCommitId 7.6.9
OS Microsoft Windows 10.0.26200
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
Current main branch at commit 23eed76
Visuals
No response
- Linguagem predominante
- PowerShell
- Estrelas
- 149
- Forks
- 55
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o 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.
Mais de PowerShell/EditorSyntax
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
PowerShell/EditorSyntax#224 · 2 comentários ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 48/100
PowerShell/EditorSyntax#222 · 2 comentários ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
PowerShell/EditorSyntax#221 · 2 comentários ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
PowerShell/EditorSyntax#220 · 2 comentários · 1 reação ·
-
Issue-Bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 48/100
PowerShell/EditorSyntax#219 · 2 comentários ·
Todas as issues de PowerShell/EditorSyntax
Issues semelhantes
-
good first issue reliability severity: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
TMHSDigital/Static_Chess#150 ·
Mantenedores costumam responder em até 1 dia
-
effort: small good first issue priority: medium testing
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
TMHSDigital/screencast-mcp#351 ·
Mantenedores costumam responder em até 1 dia
-
a launchd removal test races the fake's refusal against bootout under loadTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
nledford/Ladderback#907 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
btclib-org/btclib-wallet#1045 ·
Mantenedores costumam responder em até 1 dia
-
hive size:simple
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia