Skip to content

Commit

Permalink
Fixing psv2 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwyatt committed Jul 22, 2016
1 parent 4038a90 commit 9f62ee9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Functions/TestResults.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,11 @@ function Write-NUnitTestSuiteElements($Node, [System.Xml.XmlWriter] $XmlWriter,
}
}

$suites = $Node.Actions |
& $SafeCommands['Where-Object'] { $_.Type -eq 'TestCase' } |
& $SafeCommands['Group-Object'] -Property ParameterizedSuiteName
$suites = @(
$Node.Actions |
& $SafeCommands['Where-Object'] { $_.Type -eq 'TestCase' } |
& $SafeCommands['Group-Object'] -Property ParameterizedSuiteName
)

foreach ($suite in $suites)
{
Expand Down

0 comments on commit 9f62ee9

Please sign in to comment.