Skip to content

Get CodeCoverageThreshold

gaelcolas edited this page Jul 18, 2024 · 1 revision

Get-CodeCoverageThreshold

SYNOPSIS

Gets the CodeCoverageThreshod from Runtime parameter or from BuildInfo.

SYNTAX

Get-CodeCoverageThreshold [[-RuntimeCodeCoverageThreshold] <String>] [[-BuildInfo] <PSObject>]
 [<CommonParameters>]

DESCRIPTION

This function will override the CodeCoverageThreshold by the value provided at runtime if any.

EXAMPLES

EXAMPLE 1

Get-CodeCoverageThreshold -RuntimeCodeCoverageThreshold 0

PARAMETERS

-BuildInfo

BuildInfo object as defined by the Build.yml.

Type: PSObject
Parameter Sets: (All)
Aliases:

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

-RuntimeCodeCoverageThreshold

Runtime value for the Pester CodeCoverageThreshold (can be $null).

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
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

OUTPUTS

System.String

NOTES

RELATED LINKS

Clone this wiki locally