-
Notifications
You must be signed in to change notification settings - Fork 7
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
PSRemotely support to pass tag or Pester Splat hash #51
Comments
Thinking aloud. At Node scopeThis would capability to organize tests targeting the same nodes. PSRemotely {
Node AD -Tag ServiceValidation {
# Service tests
}
Node AD -Tag DomainGroupsValidation {
# tests run on domain groups
}
} At Test scopeThis would give capability to organize tests using Pester Describe blocks. PSRemotely {
Node AD {
# Service tests
Describe 'Service test' -tag Service {
# tests
}
# Domain group tests
Describe 'DomainGroups test' -tag domaingroup {
# tests
}
}
} Now the default would be passing tags to test scope. For example -
Now the above would only run Pester tests (Describe blocks) marked with the specified tag. To support more flexibility to the DSL by allowing tags at the node scope, thinking of adding -Tag parameter supports a hash table as an alternative like below:-
|
Or we can add a parameter named -PesterSplatHash which takes a hashtable and splats that to the Invoke-Pester on the PSRemotely node while running the tests. This is much cleaner and less amount of work. |
This requires some unit and integration tests coverage before it can be merged. |
This one is not completely ready. Want the ability to specify tags to PSRemotely while invoking it.
Now the above should flow down the tag to the remote nodes and only run ops validation tests marked with the same tag.
The text was updated successfully, but these errors were encountered: