-
-
Notifications
You must be signed in to change notification settings - Fork 476
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
Parametric scripts #1671
Parametric scripts #1671
Conversation
This is how it would be used, you can provide one or multiple of those objects, and one or multiple sets of data in each objects: You'd be most likely providing files, not scriptblocks. |
@@ -368,3 +368,22 @@ function Remove-RSpecNonPublicProperties ($run){ | |||
$i.PluginData = $null | |||
} | |||
} | |||
|
|||
|
|||
function New-TestContainer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this good API?
@@ -288,6 +288,9 @@ function Invoke-Pester { | |||
[Parameter(ParameterSetName = "Legacy")] # Legacy set for v4 compatibility during migration - deprecated | |||
[Switch] $PassThru, | |||
|
|||
[Parameter(ParameterSetName = "Simple")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this good API?
@JustinGrote review pls :) |
Add the ability to provide parameters to scripts via
Invoke-Pester
.Fix #1485
Fix #1558