Skip to content

Latest commit

 

History

History
119 lines (85 loc) · 2.72 KB

File metadata and controls

119 lines (85 loc) · 2.72 KB
external help file Locale Module Name ms.date online version schema title
Microsoft.PowerShell.Operation.Validation-help.xml
en-US
Microsoft.PowerShell.Operation.Validation
12/13/2022
2.0.0
Get-OperationValidation

Get-OperationValidation

SYNOPSIS

Gets Operation Validation Framework tests.

SYNTAX

Get-OperationValidation [[-ModuleName] <String[]>] [-TestType <String[]>] [<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.

EXAMPLES

Example 1: Get Operation Validation tests

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.

PARAMETERS

-ModuleName

Specifies an array of names of modules.

Type: System.String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-TestType

Specifies an array of test types. Valid values are:

  • Simple
  • Comprehensive

The default is Simple,Comprehensive.

Type: System.String[]
Parameter Sets: (All)
Aliases:
Accepted values: Simple, Comprehensive

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

You can't pipe objects to this cmdlet.

OUTPUTS

System.Management.Automation.PSCustomObject

This cmdlet returns a PSCustomObject describing the validation.

NOTES

RELATED LINKS

Invoke-OperationValidation