Get-TestDriveItem
SYNOPSIS
The Get-TestDriveItem cmdlet gets the item in Pester test drive.
SYNTAX
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
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.
INPUTS
OUTPUTS
NOTES
RELATED LINKS
https://pester.dev/docs/v4/usage/testdrive
EDIT THIS PAGE
This page was auto-generated using Pester's comment based help. To edit the content of this page, change the corresponding help in the pester/Pester repository. See our contribution guide for more information.