Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1536,17 +1536,17 @@ function Show-PSPesterError

if ($PSCmdlet.ParameterSetName -eq 'xml')
{
$description = $testFailure.description
$name = $testFailure.name
$message = $testFailure.failure.message
$StackTrace = $testFailure.failure."stack-trace"
[String] $description = $testFailure.description
[String] $name = $testFailure.name
[String] $message = $testFailure.failure.message
[String] $TestStackTrace = $testFailure.failure."stack-trace"
}
elseif ($PSCmdlet.ParameterSetName -eq 'object')
{
$description = $testFailureObject.Describe + '/' + $testFailureObject.Context
$name = $testFailureObject.Name
$message = $testFailureObject.FailureMessage
$StackTrace = $testFailureObject.StackTrace
[String] $description = $testFailureObject.Describe + '/' + $testFailureObject.Context
[String] $name = $testFailureObject.Name
[String] $message = $testFailureObject.FailureMessage
[String] $TestStackTrace = $testFailureObject.StackTrace
}
else
{
Expand All @@ -1558,7 +1558,7 @@ function Show-PSPesterError
Write-Log -isError -message "message:"
Write-Log -isError -message $message
Write-Log -isError -message "stack-trace:"
Write-Log -isError -message $StackTrace
Write-Log -isError -message $TestStackTrace

}

Expand Down Expand Up @@ -1597,7 +1597,6 @@ function Test-XUnitTestResults
$name = $failure.method
$message = $failure.failure.message
$StackTrace = $failure.failure.'stack-trace'

Write-Log -isError -message ("Description: " + $description)
Write-Log -isError -message ("Name: " + $name)
Write-Log -isError -message "message:"
Expand Down Expand Up @@ -1854,8 +1853,8 @@ function Install-Dotnet {
}
else {
# dotnet-install.ps1 uses APIs that are not supported in .NET Core, so we run it with Windows PowerShell
$fullPSPath = Join-Path -Path $env:windir -ChildPath "System32\WindowsPowerShell\v1.0\powershell.exe"
$fullDotnetInstallPath = Join-Path -Path (Convert-Path -Path $PWD.Path) -ChildPath $installScript
[String] $fullPSPath = Join-Path -Path $env:windir -ChildPath "System32\WindowsPowerShell\v1.0\powershell.exe"
[String] $fullDotnetInstallPath = Join-Path -Path (Convert-Path -Path $PWD.Path) -ChildPath $installScript

if ($Version) {
$psArgs = @('-NoLogo', '-NoProfile', '-File', $fullDotnetInstallPath, '-Version', $Version, '-Quality', $Quality)
Expand Down