Tests fail on main branch
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 68/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- powershell
- Domaine
- testing-qa
Piste de recherche
Commencez par syntax_test_TheBigTestFile.ps1, qui signale les échecs aux lignes 114 et 117, puis suivez les scopes attendus pour $error et $home dans les tests de grammaire PowerShell. Exécutez .\build.ps1 -Test pour reproduire le problème ; le travail est terminé lorsque les deux variables reçoivent le scope attendu support.constant.variable.powershell et que la suite de tests réussit.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- PowerShell
- Étoiles
- 149
- Forks
- 55
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de PowerShell/EditorSyntax
-
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
PowerShell/EditorSyntax#224 · 2 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
PowerShell/EditorSyntax#222 · 2 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
PowerShell/EditorSyntax#221 · 2 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
PowerShell/EditorSyntax#220 · 2 commentaires · 1 réaction ·
-
Issue-Bug
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
PowerShell/EditorSyntax#219 · 2 commentaires ·
Toutes les issues de PowerShell/EditorSyntax
Issues similaires
-
good first issue reliability severity: low
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
TMHSDigital/Static_Chess#150 ·
Les mainteneurs répondent en général sous 1 jour
-
effort: small good first issue priority: medium testing
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
TMHSDigital/screencast-mcp#351 ·
Les mainteneurs répondent en général sous 1 jour
-
a launchd removal test races the fake's refusal against bootout under loadPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
nledford/Ladderback#907 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
btclib-org/btclib-wallet#1045 ·
Les mainteneurs répondent en général sous 1 jour
-
hive size:simple
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour