@@ -660,8 +660,8 @@ parameters: .\Tests\Utility\ModuleUnit.Tests.ps1 srvNano16 -Name User01
660
660
661
661
. Example
662
662
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 }
665
665
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.
666
666
667
667
. Example
@@ -829,7 +829,7 @@ New-PesterOption
829
829
try
830
830
{
831
831
Enter-CoverageAnalysis - CodeCoverage $CodeCoverage - PesterState $pester
832
- Write-PesterStart $pester $Script
832
+ # Write-PesterStart $pester $Script
833
833
834
834
$invokeTestScript = {
835
835
param (
@@ -862,11 +862,11 @@ New-PesterOption
862
862
}elseif (-not [string ]::IsNullOrEmpty($testScript.Script )){
863
863
$testDesctiption = $testScript.Script
864
864
}
865
-
865
+
866
866
try
867
867
{
868
868
$pester.EnterTestGroup ($testDesctiption , ' Script' )
869
- Write-Describe $testDesctiption - CommandUsed Script
869
+ # Write-Describe $testDesctiption -CommandUsed Script
870
870
do
871
871
{
872
872
& $invokeTestScript - Path $testScript.Path - Script $testScript.Script - Arguments $testScript.Arguments - Parameters $testScript.Parameters
@@ -1002,7 +1002,7 @@ function ResolveTestScripts
1002
1002
}
1003
1003
else
1004
1004
{
1005
- $unresolvedPath = [string ] $object
1005
+ # $unresolvedPath = [string] $object
1006
1006
$script = [string ] $object
1007
1007
$arguments = @ ()
1008
1008
$parameters = @ {}
0 commit comments