Skip to content

Pester describe block "Run tests" and "Debug tests" do not run #1500

Closed
@jchris1

Description

@jchris1

System Details

  • Operating system name and version:
    Windows 10 Enterprise
    Version 1709 (OS Build 16299.611)

  • VS Code version:
    Version: 1.26.1
    Commit: 493869ee8e8a846b0855873886fc79d480d342de
    Date: 2018-08-16T18:38:57.434Z
    Electron: 2.0.5
    Chrome: 61.0.3163.100
    Node.js: 8.9.3
    V8: 6.1.534.41
    Architecture: x64

  • PowerShell extension version: 1.8.3

PS C:\Users\jachris1> code -v
1.26.1
493869ee8e8a846b0855873886fc79d480d342de
x64
PS C:\Users\jachris1> $pseditor.EditorServicesVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
1      8      3      0
PS C:\Users\jachris1> code --list-extensions --show-versions
ms-vscode.Go@0.6.88
ms-vscode.PowerShell@1.8.3
ApplicationInsights:Sender [ { Error: connect ETIMEDOUT 64.4.54.254:443
    at Object._errnoException (util.js:1024:11)
    at _exceptionWithHostPort (util.js:1046:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
    code: 'ETIMEDOUT',
    errno: 'ETIMEDOUT',
    syscall: 'connect',
    address: '64.4.54.254',
    port: 443 } ]
PS C:\Users\jachris1> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.16299.611
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.16299.611
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

I am experiencing a problem with...
In Powershell Pester test scripts, both "Run tests" and "Debug tests" (above a Pester Describe block) give an error:
Running the contributed command:'PowerShell.RunPesterTests' failed.

Test script:

 Describe "test" {
    if (1)
    {
        it "test" {
            1 | Should Be 1
        }
    }
}

Attached Logs

Follow the instructions in the README
about capturing and sending logs.

EditorServices.log
vscode-powershell.log

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions