vscode-adapter icon indicating copy to clipboard operation
vscode-adapter copied to clipboard

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

Open iRon7 opened this issue 10 months ago • 2 comments

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

iRon7 avatar Apr 06 '25 08:04 iRon7