# How to use Test-ModuleInclusion ## Parameters FolderPath - Where to find the modules. Ex: Z:\git\devops_powershell\Modules FailBuild - A switch to fail the build if things are broken Assuming your repository path locally is Z:\git\devops_powershell\, this is what you would type to run this command PS Z:\git\devops_powershell> cd Modules PS Z:\git\devops_powershell\Modules> . .\.build\Test-ModuleInclusion.ps1 PS Z:\git\devops_powershell\Modules> Test-ModuleInclusion (Resolve-Path .\) And this is the output you would expect to see from an initial run (before we fix things) testing solution Did not match [SecretServerConnection.ps1] as a valid filename. Found a CS Project for Alkami.Ops.Certificates Found a CS Project for Alkami.Ops.Common Found a CS Project for Alkami.Ops.SecretServer Did not match [IsPackageWidget.ps1] as a valid filename. Found a CS Project for Alkami.PowerShell.Migrations ====================== Alkami.DevOps.Certificates uses * Alkami.PowerShell.Common * Alkami.PowerShell.Services * Alkami.PowerShell.Configuration * Alkami.PowerShell.IIS Alkami.DevOps.Common uses * Alkami.PowerShell.Common - WARNING - OBVIOUS CYCLE * Alkami.PowerShell.Configuration * Alkami.DevOps.Certificates Alkami.DevOps.Installation uses * Alkami.PowerShell.Common * Alkami.DevOps.Common * Alkami.PowerShell.Configuration * Alkami.PowerShell.AD * Alkami.PowerShell.IIS * Alkami.PowerShell.Services * Alkami.DevOps.Certificates Alkami.DevOps.Inventory uses * Alkami.PowerShell.Common * Alkami.PowerShell.Choco - WARNING - OBVIOUS CYCLE * Alkami.PowerShell.Configuration * Alkami.PowerShell.ServiceFabric * Alkami.DevOps.Certificates Alkami.DevOps.Operations uses * Alkami.PowerShell.Common * Carbon * Alkami.PowerShell.IIS * Alkami.PowerShell.Services * Alkami.PowerShell.AD * Alkami.PowerShell.Choco * Alkami.DevOps.Common * Alkami.PowerShell.Configuration Alkami.DevOps.SqlReports uses * Alkami.PowerShell.Common * Alkami.PowerShell.Configuration * Alkami.DevOps.Common Alkami.Ops.Certificates doesn't have additional-module usage Alkami.Ops.Common doesn't have additional-module usage Alkami.Ops.SecretServer doesn't have additional-module usage Alkami.PowerShell.AD uses * Alkami.PowerShell.Common Alkami.PowerShell.Choco uses * Alkami.PowerShell.Common * Carbon * Alkami.PowerShell.Services * Alkami.PowerShell.AD * Alkami.PowerShell.ServiceFabric - WARNING - OBVIOUS CYCLE * Alkami.DevOps.Inventory - WARNING - SOMETHING REQUIRES A HIGHER-ORDER-FUNCTION * !! Install-FailedChocoPackages calls Get-PlatformElementInventory Alkami.PowerShell.Common uses * Alkami.PowerShell.Configuration - WARNING - OBVIOUS CYCLE * Alkami.DevOps.Common - WARNING - SOMETHING REQUIRES A HIGHER-ORDER-FUNCTION * !! Set-AppSetting calls ConvertTo-SafeTeamCityMessage Alkami.PowerShell.Configuration uses * Alkami.PowerShell.Common - WARNING - OBVIOUS CYCLE Alkami.PowerShell.Database uses * Alkami.PowerShell.Common * Alkami.PowerShell.Configuration Alkami.PowerShell.IIS uses * Alkami.PowerShell.Common * Carbon * WebAdministration * Alkami.PowerShell.Configuration * Alkami.PowerShell.Services Alkami.PowerShell.Migrations doesn't have additional-module usage Alkami.PowerShell.ServerManagement uses * Alkami.PowerShell.Common * Alkami.PowerShell.Services * Alkami.PowerShell.Configuration Alkami.PowerShell.ServiceFabric uses * Alkami.PowerShell.Common * Alkami.DevOps.Common - WARNING - SOMETHING REQUIRES A HIGHER-ORDER-FUNCTION * !! Get-AlkamiServiceFabricHostnamesByTag calls Get-DesignationTagNameByEnvironment * !! Get-AlkamiServiceFabricHostnamesByTag calls Get-InstancesByTag * Alkami.PowerShell.Choco - WARNING - OBVIOUS CYCLE * Alkami.PowerShell.Configuration * Carbon Alkami.PowerShell.Services uses * Alkami.PowerShell.Common * Alkami.PowerShell.AD * Alkami.PowerShell.Configuration