JiraAgilePS Testing Guide

This guide explains the JiraAgilePS test layout and the expected commands for targeted and full validation.

Test Structure

JiraAgilePS uses Pester 5.7+. Tests mirror the module structure so contributors can find the test for a function from its source path.

Test Templates

Use the closest template when adding coverage:

Public cmdlet tests should cover signature, API call shape, conversion calls, and paging behavior where applicable. Private converter tests should cover object conversion, property mapping, null handling where supported, and pipeline behavior.

Running Tests

Run focused tests while iterating:

Invoke-Pester -Path 'Tests/Functions/Public/Get-Board.Unit.Tests.ps1'
Invoke-Pester -Path 'Tests/Functions/Private/ConvertTo-Board.Unit.Tests.ps1'

Run the full repository gate before finishing work:

./Tools/setup.ps1
Invoke-Build -Task Build, Test

The default test task excludes integration tests. Run integration tests only when the change affects live Jira Agile behavior and the required environment values are available.

Writing Tests