BicepTester.psm1
<#Import pester module #> # Import-Module Pester Write-Host "MyModule installed" <# .Synopsis Invokes the Benchpress tests .DESCRIPTION Invokes the Benchpress tests to test the infrastructure created by Bicep .Example Get-ResourceGroupExists("YourResourceGroupName") #> function Get-ResourceGroupExists([string]$resourceGroupName) { $rg = Get-AzResourceGroup $resourceGroupName if ($null -eq $rg) { throw "Resource group $resourceGroupName was not found!" } else{ return $true } } function Show-Calendar { Write-Output("Testing") } #Export-ModuleMember -Function Show-Calendar Export-ModuleMember -Function * -Cmdlet * <# Invoke-Tests -> takes the script path and run the tests #> |