Public Function Tests

This directory contains unit tests for public exported ConfluencePS cmdlets in ConfluencePS/Public/*.ps1.

Naming

Use one file per public cmdlet named <CmdletName>.Unit.Tests.ps1.

Examples:

Structure

Public cmdlet tests should usually include:

Helpers

Dot-source shared test helpers with ../../Helpers/<HelperName>.ps1 from files in this directory. Use Initialize-TestEnvironment in BeforeDiscovery, then test inside InModuleScope ConfluencePS.

See .template.ps1 for a starting point.