Skip to content

Commit 7c490eb

Browse files
committed
Custom Pester
1 parent 89cd08e commit 7c490eb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Pester.psm1

+6-6
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ parameters: .\Tests\Utility\ModuleUnit.Tests.ps1 srvNano16 -Name User01
660660
661661
.Example
662662
Invoke-Pester -Script @{Script = $scriptText}
663-
This command runs all tests passed as string in $scriptText variable with no aditional parameters and arguments. This notation can be combined with
664-
Invoke-Pester -Script D:\MyModule, @{ Path = '.\Tests\Utility\ModuleUnit.Tests.ps1'; Parameters = @{ Name = 'User01' }; Arguments = srvNano16 }
663+
This command runs all tests passed as string in $scriptText variable with no aditional parameters and arguments. This notation can be combined with
664+
Invoke-Pester -Script D:\MyModule, @{ Path = '.\Tests\Utility\ModuleUnit.Tests.ps1'; Parameters = @{ Name = 'User01' }; Arguments = srvNano16 }
665665
if needed. This command can be used when tests and scripts are stored not on the FileSystem, but somewhere else, and it is impossible to provide a path to it.
666666
667667
.Example
@@ -829,7 +829,7 @@ New-PesterOption
829829
try
830830
{
831831
Enter-CoverageAnalysis -CodeCoverage $CodeCoverage -PesterState $pester
832-
Write-PesterStart $pester $Script
832+
# Write-PesterStart $pester $Script
833833

834834
$invokeTestScript = {
835835
param (
@@ -862,11 +862,11 @@ New-PesterOption
862862
}elseif(-not [string]::IsNullOrEmpty($testScript.Script)){
863863
$testDesctiption = $testScript.Script
864864
}
865-
865+
866866
try
867867
{
868868
$pester.EnterTestGroup($testDesctiption, 'Script')
869-
Write-Describe $testDesctiption -CommandUsed Script
869+
# Write-Describe $testDesctiption -CommandUsed Script
870870
do
871871
{
872872
& $invokeTestScript -Path $testScript.Path -Script $testScript.Script -Arguments $testScript.Arguments -Parameters $testScript.Parameters
@@ -1002,7 +1002,7 @@ function ResolveTestScripts
10021002
}
10031003
else
10041004
{
1005-
$unresolvedPath = [string] $object
1005+
# $unresolvedPath = [string] $object
10061006
$script = [string] $object
10071007
$arguments = @()
10081008
$parameters = @{}

0 commit comments

Comments
 (0)