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

Feature Request: Add runtime parameters to tests

Open b1kjsh opened this issue 1 year ago • 1 comments

I have pester tests that need parameters passed at runtime in order to execute the tests.

An example would be:

param($deviceName, $artifactDirectory, $CustomTarget)
BeforeAll {
...setup tests
}
Describe "These are my tests" {
    It "blah" {
        ...
    }
}

I have a CI environment where I have to run a powershell script which uses a New-PesterContainer and passes arguments via the -Data parameter. But I don't see anyway to configure this in the Pester Test explorer.

b1kjsh avatar Nov 01 '23 15:11 b1kjsh

I'm not sure how this would even work. Would you want a popup for each parameter? A psd1 to supply your pester config? All of which have a lot of security issues.

JustinGrote avatar Nov 06 '23 14:11 JustinGrote