Skip to content

[vscode-adapter] doesn't recognize using statements for individual tests #286

@iRon7

Description

@iRon7

In my use case it actually concerns the using module ... statement but the general issue might be simply reproduced with any using statement as using namespace ...:
Taken the following test:

Using namespace System.Collections
Using namespace System.Collections.Generic

Describe 'Describe-Using' {
    Context 'Using' {
        It 'Should use the using statement' {
            'Test' | Should -not -BeOfType [IList]
        }
    }
}

The pester test runs fine when ran completely (e.g. by pressing F5).
But when invoked in individually (right click on the test --> Run Pester Tests), it apparently doesn't recognize the general using statements for the individual tests, and fails the tests:

Image

Metadata

Metadata

Assignees

No one assigned

    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