Runtime Error when clicking Run Tests on a Pester test
See original GitHub issueSystem Details
- Operating system name and version: Windows 10 x64 build 15063.296
- VS Code version: 1.13.0
- PowerShell extension version: 1.3.2
- Output from
$PSVersionTable
:
Name Value
---- -----
PSVersion 5.1.15063.296
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.296
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PS H:\src\tools\Automation\Modules\EsxVmMaker\test> code -v
PS H:\src\tools\Automation\Modules\EsxVmMaker\test> $pseditor.EditorServicesVersion
Major Minor Build Revision
----- ----- ----- --------
1 3 2 0
PS H:\src\tools\Automation\Modules\EsxVmMaker\test> code --list-extensions --show-versions
PS H:\src\tools\Automation\Modules\EsxVmMaker\test> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.15063.296
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.296
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Output of code -v
from a normal terminal:
1.13.0
376c52b955428d205459bea6619fc161fc8faacf
Output of code --list-extensions --show-versions
from a normal terminal:
AlanWalk.markdown-toc@1.5.5
annsk.alignment@0.3.0
christian-kohler.path-intellisense@1.4.2
chrmarti.regex@0.1.0
DavidAnson.vscode-markdownlint@0.9.1
davidhouchin.whitespace-plus@0.0.4
donjayamanne.githistory@0.2.0
DougFinke.vscode-GetXrefLink@0.0.2
eamodio.gitlens@4.1.1
EditorConfig.EditorConfig@0.9.3
emmanuelbeziat.vscode-great-icons@2.1.7
Equinusocio.vsc-material-theme@0.0.15
gebilaoxiong.vscode-flatland-icon-theme@0.0.6
IBM.output-colorizer@0.1.1
Ionide.Ionide-FAKE@1.2.3
Ionide.Ionide-fsharp@2.26.1
Ionide.Ionide-Paket@1.6.3
jakob101.relativepathrefactor@0.8.0
jamesmaj.easy-icons@0.3.1
josa.markdown-table-formatter@0.2.2
joshbax.mdhelper@0.0.9
jprestidge.theme-material-theme@1.0.1
just4developments.testing-regex@0.0.2
miguel-savignano.ruby-symbols@0.1.5
ms-vscode.cpptools@0.11.4
ms-vscode.csharp@1.10.0
ms-vscode.PowerShell@1.3.2
ms-vsts.team@1.118.2
nestalk.preview-control-characters@0.0.1
nhoizey.gremlins@0.4.1
onecrayon.theme-quietlight-vsc@1.0.2
PeterJausovec.vscode-docker@0.0.16
qinjia.seti-icons@0.1.3
rebornix.Ruby@0.12.1
remcoros.startanyshell@0.3.1
robertohuertasm.vscode-icons@7.9.0
searKing.preview-vscode@1.1.5
steve8708.Align@0.2.0
teabyii.ayu@0.3.0
waderyan.gitblame@1.11.2
zgudino.editorconfig-vscode-snippet@0.2.0
Issue Description
I have a pester test:
$ModuleManifestName = 'ImageMaker.psd1'
$ModuleManifestPath = "$PSScriptRoot\..\$ModuleManifestName"
Describe 'Module Manifest Tests' {
It 'Passes Test-ModuleManifest' {
Test-ModuleManifest -Path $ModuleManifestPath
$? | Should Be $true
}
}
When I click the Run tests
codelens link I get this error message box:
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!
Program: C:\WINDOWS\SysWOW64\windowspowershell\v1.0\PowerShell.exe
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.
---------------------------
OK
---------------------------
Attached Logs
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
How do I Powershell Pester Test for ThrowTerminatingError
In order to catch a terminating error (an exception) in a Pester test: you must enclose the input command in a script block...
Read more >Discovery and Run - Pester
Pester runs your test files in two phases: Discovery and Run. During discovery, it quickly scans your test files and discovers all the...
Read more >PowerShell integration tests with Pester - 4sysops
Tests.ps1 and run Invoke-Pester. Notice that I'm using the path to the script and passing my ComputerName to the test script as well....
Read more >PowerShell Testing with Pester 5 - YouTube
At this meeting we will have Pester owner and maintainer Jakub Jares as guest speaker.In this session the following topics are covered:0:00 ...
Read more >Hard to test cases in Pester - FoxDeploy
Honestly, I didn't get it… · CodeCoverage made Pester finally click · Completing The Tests · How to test your error handling ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@TylerLeonhardt Creating a new project with a plaster template, I can no longer reproduce this issue. My guess is that it was fixed as a side effect of other changes. I’d suggest you could close this issue, and if someone notices it again, it could be reopened.
If you don’t mind, a repro attempt would be great. Otherwise, this issue will be automatically closed eventually.