diff --git a/Actions/AnalyzeTests/TestResultAnalyzer.ps1 b/Actions/AnalyzeTests/TestResultAnalyzer.ps1 index 1beae6e4fa..5e821ddc39 100644 --- a/Actions/AnalyzeTests/TestResultAnalyzer.ps1 +++ b/Actions/AnalyzeTests/TestResultAnalyzer.ps1 @@ -192,10 +192,10 @@ function GetTestResultSummaryMD { foreach($failure in $testcase.ChildNodes) { Write-Host " - Error: $($failure.message)" Write-Host " Stacktrace:" - Write-Host " $($failure."#text".Trim().Replace("`n","`n "))" + Write-Host " $($failure.InnerText.Trim().Replace("`n","`n "))" $testFailureNode = [FailureNode]::new($true) $testFailureNode.errorMessage = $failure.message - $testFailureNode.errorStackTrace = $($failure."#text".Trim().Replace("`n","
      ")) + $testFailureNode.errorStackTrace = $($failure.InnerText.Trim().Replace("`n","
      ")) $testCaseFailureNode.childSummaries.Add($testFailureNode) | Out-Null } $suiteFailureNode.childSummaries.Add($testCaseFailureNode) | Out-Null diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 007110df8f..6a43ac03da 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -55,6 +55,7 @@ The `DownloadProjectDependencies` action now downloads only artifacts from depen - Issue 2211 - Cannot create a release if a project contains only test apps - Issue 2214 - Workspace compilation not working with external dependencies - Issue 2235 - Workspace compilation: only the first `customCodeCops` entry resolved when multiple relative paths were configured. Relative `customCodeCops` paths are now resolved against the project folder before being passed to the compiler. +- Issue 2256 - Test Result Analyzer fails if no stack trace is available ## v9.0