Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add runtime parameters to tests #218

Open
b1kjsh opened this issue Nov 1, 2023 · 1 comment
Open

Feature Request: Add runtime parameters to tests #218

b1kjsh opened this issue Nov 1, 2023 · 1 comment

Comments

@b1kjsh
Copy link

b1kjsh commented Nov 1, 2023

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.

@JustinGrote
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants