Test-Module.ps1
<#
.NOTES =========================================================================== Created with: SAPIEN Technologies, Inc., PowerShell Studio 2020 v5.7.181 Created on: 9/15/2020 9:02 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 'QADHealthcheck' #Run each module function #Write-HelloWorld #Sample Pester Test #Describe "Test QADHealthcheck" { # It "tests Write-HellowWorld" { # Write-HelloWorld | Should BeExactly "Hello World" # } #} |