Get-TestDriveItem
Contributions are welcome in Pester v4-repo.
SYNOPSIS
The Get-TestDriveItem cmdlet gets the item in Pester test drive.
SYNTAX
Get-TestDriveItem [[-Path] <string>]
DESCRIPTION
The Get-TestDriveItem cmdlet gets the item in Pester test drive. It does not get the contents of the item at the location unless you use a wildcard character (*) to request all the contents of the item.
The function Get-TestDriveItem is deprecated since Pester v. 4.0 and will be deleted in the next major version of Pester.
EXAMPLES
EXAMPLE 1
Get-TestDriveItem MyTestFolder\MyTestFile.txt
This command returns the file MyTestFile.txt located in the folder MyTestFolder what is located under TestDrive.
PARAMETERS
-Path
Specifies the path to an item. The path need to be relative to TestDrive:. This cmdlet gets the item at the specified location. Wildcards are permitted. This parameter is required, but the parameter name ("Path") is optional.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
INPUTS
OUTPUTS
NOTES
RELATED LINKS
VERSION
This page was generated using comment-based help in Pester 4.10.1.