< Back
Get-OperationValidation
Post
NAME Get-OperationValidation
SYNOPSIS
Gets Operation Validation Framework tests.
SYNTAX
Get-OperationValidation [[-ModuleName] <String[]>] [-TestType {Simple | Comprehensive}] [<CommonParameters>]
DESCRIPTION
The Get-OperationValidation cmdlet gets Operation Validation Framework tests for installed modules.
Modules that include a Diagnostics folder are inspected for Pester tests in the Simple or Comprehensive subfolder, or both.
PARAMETERS
-ModuleName [<String[]>]
Specifies an array of names of modules.
Required? false
Position? 1
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-TestType [<String[]>]
Specifies an array of test types. Valid values are Simple, Comprehensive, or both. The default is "Simple,Comprehensive".
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
You cannot pipe any input to this cmdlet.
OUTPUTS
PSCustomObject
The PSCustomObject describes the validation.
Example 1: Get Operation Validation tests
PS C:\\>Get-OperationValidation -ModuleName "C:\\temp\\modules\\AddNumbers"
Type: Simple
File: addnum.tests.ps1
FilePath: C:\\temp\\modules\\AddNumbers\\Diagnostics\\Simple\\addnum.tests.ps1
Name:
Add-Em
Subtract em
Add-Numbers
Type: Comprehensive
File: Comp.Adding.Tests.ps1
FilePath: C:\\temp\\modules\\AddNumbers\\Diagnostics\\Comprehensive\\Comp.Adding.Tests.ps1
Name:
Comprehensive Adding Tests
Comprehensive Subtracting Tests
Comprehensive Examples
This command gets validation tests from the module named AddNumbers in the C:\\temp\\modules folder.
RELATED LINKS
Invoke-OperationValidation
SYNOPSIS
Gets Operation Validation Framework tests.
SYNTAX
Get-OperationValidation [[-ModuleName] <String[]>] [-TestType {Simple | Comprehensive}] [<CommonParameters>]
DESCRIPTION
The Get-OperationValidation cmdlet gets Operation Validation Framework tests for installed modules.
Modules that include a Diagnostics folder are inspected for Pester tests in the Simple or Comprehensive subfolder, or both.
PARAMETERS
-ModuleName [<String[]>]
Specifies an array of names of modules.
Required? false
Position? 1
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-TestType [<String[]>]
Specifies an array of test types. Valid values are Simple, Comprehensive, or both. The default is "Simple,Comprehensive".
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
You cannot pipe any input to this cmdlet.
OUTPUTS
PSCustomObject
The PSCustomObject describes the validation.
Example 1: Get Operation Validation tests
PS C:\\>Get-OperationValidation -ModuleName "C:\\temp\\modules\\AddNumbers"
Type: Simple
File: addnum.tests.ps1
FilePath: C:\\temp\\modules\\AddNumbers\\Diagnostics\\Simple\\addnum.tests.ps1
Name:
Add-Em
Subtract em
Add-Numbers
Type: Comprehensive
File: Comp.Adding.Tests.ps1
FilePath: C:\\temp\\modules\\AddNumbers\\Diagnostics\\Comprehensive\\Comp.Adding.Tests.ps1
Name:
Comprehensive Adding Tests
Comprehensive Subtracting Tests
Comprehensive Examples
This command gets validation tests from the module named AddNumbers in the C:\\temp\\modules folder.
RELATED LINKS
Invoke-OperationValidation