Create a pattern for how to unit test PowerShell code in workflows. Implement that pattern for at least one function. This allows us to eventually implement this pattern for all PowerShell code in workflows.
Motivation and context
When workflows use PowerShell code, this code should be unit tested in order to catch (at least some) bugs (such as the recent signing problems).
Implementation notes
Select dir to store workflow code and unit testing code.
Mock a test: Create a mock workflow that calls mock code and another mock workflow that calls mock unit tests for that mock code. This sets a pattern for all future workflow unit testing.
Once the pattern is agreed upon, implement a real test using code from the nightly product functional tests
Acceptance criteria
[ ] We have a pattern for unit testing workflow code.
[ ] The pattern has been implemented for at least one workflow function.
💡 Summary
Create a pattern for how to unit test PowerShell code in workflows. Implement that pattern for at least one function. This allows us to eventually implement this pattern for all PowerShell code in workflows.
Motivation and context
When workflows use PowerShell code, this code should be unit tested in order to catch (at least some) bugs (such as the recent signing problems).
Implementation notes
Acceptance criteria