Tests fail on main branch

Aberta Para iniciantes
#227 0 comentários 0 reações 0 responsáveis Ver no GitHub

@BryanCuneo já está trabalhando nisso.

Desde 29/10/2026.

  • #228 de @BryanCuneo — aberto

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

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de PowerShell/EditorSyntax

Todas as issues de PowerShell/EditorSyntax

Issues semelhantes

Mais issues de Testing & QA

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.