Title: Pester fails to generate logs after changes to error format · Issue #10809 · PowerShell/PowerShell · GitHub
Open Graph Title: Pester fails to generate logs after changes to error format · Issue #10809 · PowerShell/PowerShell
X Title: Pester fails to generate logs after changes to error format · Issue #10809 · PowerShell/PowerShell
Description: Steps to reproduce cc Steve Lee (@SteveL-MSFT) https://powershell.visualstudio.com/PowerShell/_build/results?buildId=35225&view=ms.vss-test-web.build-test-results-tab Expected behavior Pester logs should be generated Actual behavior Exce...
Open Graph Description: Steps to reproduce cc Steve Lee (@SteveL-MSFT) https://powershell.visualstudio.com/PowerShell/_build/results?buildId=35225&view=ms.vss-test-web.build-test-results-tab Expected behavior Pester logs ...
X Description: Steps to reproduce cc Steve Lee (@SteveL-MSFT) https://powershell.visualstudio.com/PowerShell/_build/results?buildId=35225&view=ms.vss-test-web.build-test-results-tab Expected behavior Pester l...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10809
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pester fails to generate logs after changes to error format","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6?view=powershell-6).\r\n\r\n-->\r\n\r\n# Steps to reproduce\r\n\r\ncc @SteveL-MSFT \r\n\r\nhttps://powershell.visualstudio.com/PowerShell/_build/results?buildId=35225&view=ms.vss-test-web.build-test-results-tab\r\n\r\n# Expected behavior\r\n\r\nPester logs should be generated\r\n\r\n# Actual behavior\r\n\r\n```none\r\nException : System.Management.Automation.MethodInvocationException:\r\n Exception calling \"WriteElementString\" with \"2\" \r\n argument(s): \"'\u001b', hexadecimal value 0x1B, is an \r\n invalid character.\"\r\n ---> System.ArgumentException: '\u001b', hexadecimal value \r\n 0x1B, is an invalid character.\r\n at \r\n System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar(Int32 \r\n ch, Byte* pDst, Boolean entitize)\r\n at System.Xml.XmlUtf8RawTextWriter.WriteElementTextB\r\n lock(Char* pSrc, Char* pSrcEnd)\r\n at \r\n System.Xml.XmlUtf8RawTextWriter.WriteString(String \r\n text)\r\n at \r\n System.Xml.XmlWellFormedWriter.WriteString(String text)\r\n at CallSite.Target(Closure , CallSite , XmlWriter , \r\n String , Object )\r\n --- End of inner exception stack trace ---\r\n at System.Management.Automation.ExceptionHandlingOps\r\n .CheckActionPreference(FunctionContext funcContext, \r\n Exception exception)\r\n at System.Management.Automation.Interpreter.ActionCa\r\n llInstruction`2.Run(InterpretedFrame frame)\r\n at System.Management.Automation.Interpreter.EnterTry\r\n CatchFinallyInstruction.Run(InterpretedFrame frame)\r\n at System.Management.Automation.Interpreter.EnterTry\r\n CatchFinallyInstruction.Run(InterpretedFrame frame)\r\n at System.Management.Automation.Interpreter.EnterTry\r\n CatchFinallyInstruction.Run(InterpretedFrame frame)\r\nTargetObject : \r\nCategoryInfo : NotSpecified: (:) [], MethodInvocationException\r\nFullyQualifiedErrorId : ArgumentException\r\nErrorDetails : \r\nInvocationInfo : System.Management.Automation.InvocationInfo\r\nScriptStackTrace : at Write-NUnitTestCaseAttributes, /Users/vsts/agent/2.1\r\n 58.0/work/1/a/bins/publish/Modules/Pester/4.8.0/Functio\r\n ns/TestResults.ps1: line 423\r\n at Write-NUnitTestCaseElement, /Users/vsts/agent/2.158.\r\n 0/work/1/a/bins/publish/Modules/Pester/4.8.0/Functions/\r\n TestResults.ps1: line 342\r\n at Write-NUnitTestSuiteElements, /Users/vsts/agent/2.15\r\n 8.0/work/1/a/bins/publish/Modules/Pester/4.8.0/Function\r\n s/TestResults.ps1: line 212\r\n at Write-NUnitTestSuiteElements, /Users/vsts/agent/2.15\r\n 8.0/work/1/a/bins/publish/Modules/Pester/4.8.0/Function\r\n s/TestResults.ps1: line 190\r\n at Write-NUnitTestResultChildNodes, /Users/vsts/agent/2\r\n .158.0/work/1/a/bins/publish/Modules/Pester/4.8.0/Funct\r\n ions/TestResults.ps1: line 138\r\n at Write-NUnitReport, /Users/vsts/agent/2.158.0/work/1/\r\n a/bins/publish/Modules/Pester/4.8.0/Functions/TestResul\r\n ts.ps1: line 103\r\n\r\n at Export-NUnitReport, /Users/vsts/agent/2.158.0/work/1\r\n /a/bins/publish/Modules/Pester/4.8.0/Functions/TestResu\r\n lts.ps1: line 72\r\n at Export-PesterResults, /Users/vsts/agent/2.158.0/work\r\n /1/a/bins/publish/Modules/Pester/4.8.0/Functions/TestRe\r\n sults.ps1: line 38\r\n at Invoke-Pester\u003cEnd>, /Users/vsts/agent/2.158.0/work/1\r\n /a/bins/publish/Modules/Pester/4.8.0/Pester.psm1: line \r\n 1163\r\n at \u003cScriptBlock>, \u003cNo file>: line 1\r\nPipelineIterationInfo : {}\r\nPSMessageDetails : \r\n\r\n```\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\n\r\n```\r\n","author":{"url":"https://github.com/TravisEz13","@type":"Person","name":"TravisEz13"},"datePublished":"2019-10-16T19:34:41Z","url":"https://github.com/PowerShell/PowerShell/issues/10809"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:851671ab-860a-0413-f96f-619d0985fafa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9422:F27CE:27CBE6D:3766828:6AFD4B8E |
| html-safe-nonce | b9344f2ce8a370e37a1ba0324444b3380b44990134a9fe87bb87630981a29b34 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDIyOkYyN0NFOjI3Q0JFNkQ6Mzc2NjgyODo2QUZENEI4RSIsInZpc2l0b3JfaWQiOiIzMjE5MTQxNDc4MzUzNTU0MzE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b5f6b710a76c7a14cfb96aecc0485d9c9eae0a651ccb79a8b45669744c68b8f6 |
| hovercard-subject-tag | issue:508055214 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/10809/issue_layout |
| twitter:image | https://opengraph.githubassets.com/40a07600687d8d593febdfb2e163d87a8f808170a9c6052c291e8e55a90dafaf/PowerShell/PowerShell/issues/10809 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/40a07600687d8d593febdfb2e163d87a8f808170a9c6052c291e8e55a90dafaf/PowerShell/PowerShell/issues/10809 |
| og:image:alt | Steps to reproduce cc Steve Lee (@SteveL-MSFT) https://powershell.visualstudio.com/PowerShell/_build/results?buildId=35225&view=ms.vss-test-web.build-test-results-tab Expected behavior Pester logs ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TravisEz13 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width