Tests/Test-Get-DefectSuite.ps1
$ModuleName = "RallyQuickToolsCli" $TestScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent $ModuleRoot = Resolve-Path "$TestScriptRoot/.." $ModuleManifest = "$ModuleRoot/$ModuleName.psd1" Write-Output "TestScriptRoot: $TestScriptRoot" Write-Output "TestScriptRoot: $ModuleRoot" Write-Output "TestScriptRoot: $ModuleManifest" Write-Output "ModuleName: $ModuleName" Remove-Module "$ModuleName" Import-Module $ModuleManifest -Force -ErrorAction Stop Describe 'Test-Get-DefectSuite' { It 'Should Not Throw' { {Get-DefectSuite "DS2820" -pull} | Should Not Throw } } |