Hi,
following your video i found this:
$requirements = @(
@{
Describe = 'Folder tempi present in the system'
Test = { test-path -path 'c:/temp' }
#Set = { new-item -ItemType Directory -Path 'c:/temp'}
}
)
c:/temp still is not created, but the command fail:
pplyRequirement : Failed to apply Requirement 'Folder tempi present in the system'
At C:\Program Files\WindowsPowerShell\Modules\Requirements\2.3.6\src\core.ps1:49 char:23
- $Requirements | % { applyRequirement $_ }
-
- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,applyRequirement