This directory contains unit tests for public (exported) JiraPS functions.
All tests in this directory follow the CRUD function pattern for public (exported) JiraPS functions.
Use this template for functions that:
Invoke-JiraMethod and other internal functionsSee .template.ps1 for the standard test structure.
See Add-JiraFilterPermission.Unit.Tests.ps1 for a complete, working example.
Public function tests are organized into three main sections:
Verify function parameters, types, default values, and mandatory status to ensure the function interface remains stable.
Test the actual functionality including:
Invoke-JiraMethod is called correctly)Test parameter sets and input handling:
To debug mock parameter values, uncomment this line in the test’s BeforeAll block:
$VerbosePreference = 'Continue'
Then mocks using Write-MockDebugInfo will display their parameter values during test execution.
Unlike converter tests in Tests/Functions/Private/: