Test-Module.ps1
<#
.NOTES =========================================================================== Created with: SAPIEN Technologies, Inc., PowerShell Studio 2019 v5.6.166 Created on: 8/6/2019 11:59 AM Created by: Gary Cook Organization: Quest Filename: Test-Module.ps1 =========================================================================== .DESCRIPTION The Test-Module.ps1 script lets you test the functions and other features of your module in your PowerShell Studio module project. It's part of your project, but it is not included in your module. In this test script, import the module (be careful to import the correct version) and write commands that test the module features. You can include Pester tests, too. To run the script, click Run or Run in Console. Or, when working on any file in the project, click Home\Run or Home\Run in Console, or in the Project pane, right-click the project name, and then click Run Project. #> #Explicitly import the module for testing Import-Module 'PSCommonCore' #Run each module function Write-HelloWorld #Sample Pester Test #Describe "Test PSCommonCore" { # It "tests Write-HellowWorld" { # Write-HelloWorld | Should BeExactly "Hello World" # } #} |