Skip to content

Commit c725839

Browse files
🩹 [Patch]: Enhance test case definition in PSScriptAnalyzer tests for improved clarity and functionality
1 parent 29eac9c commit c725839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Describe 'PSScriptAnalyzer' {
9393
foreach ($Severety in $Severeties) {
9494
Context "Severity: $Severety" {
9595
foreach ($rule in $rules | Where-Object -Property Severity -EQ $Severety) {
96-
It "$($rule.CommonName) ($($rule.RuleName))" -Skip:$rule.Skip {
96+
It "$($rule.CommonName) ($($rule.RuleName))" -Skip:$rule.Skip -ForEach $rule {
9797
$issues = [Collections.Generic.List[string]]::new()
9898
$testResults | Where-Object -Property RuleName -EQ $rule.RuleName | ForEach-Object {
9999
$relativePath = $_.ScriptPath.Replace($Path, '').Trim('\').Trim('/')

0 commit comments

Comments
 (0)