You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing a problem with Pester test failures being captured in the Problems view. I opened the examples project using:
I ran the Test task and all unit tests were successful. I modified a single test so that it would fail, because I wanted to see the failure in the Problems view. the test fails in the terminal view, but it does not display in the Problems view. I made more fail and they showed in the Problems view, but the original did not.
Here is the 1 failing test.
It is not in the Problems tab.
Code snippet that I modified to make failure (removed 'A' from expected READMENew.md).
It 'Processes non-wildcard absolute path to non-existing file via -Path param' {
New-File -Path $WorkspaceRoot\ReadmeNew.md | Should Be "$WorkspaceRoot\REDMENew.md"
}
I also tried modifying the Test task as reported in another issue as a workaround.
I think we already have a fix for this in #1362. The regex was looking for time in ms and not s (seconds). If you want, you can apply this fix locally until we ship the next update. Just open your ~\.vscode\extensions\ms-vscode.powershell-1.7.0\package.json file and edit line 179 to this:
We'll be getting a new release out soon so you can get this fix.. there's just some (hopefully) one time processes that need to be dealt with this time.
Issue Description
I am experiencing a problem with Pester test failures being captured in the Problems view. I opened the examples project using:

I ran the Test task and all unit tests were successful. I modified a single test so that it would fail, because I wanted to see the failure in the Problems view. the test fails in the terminal view, but it does not display in the Problems view. I made more fail and they showed in the Problems view, but the original did not.
Here is the 1 failing test.


It is not in the Problems tab.
Code snippet that I modified to make failure (removed 'A' from expected READMENew.md).
I also tried modifying the Test task as reported in another issue as a workaround.
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: