Skip to content

Get SamplerCodeCoverageOutputFile

gaelcolas edited this page Jul 18, 2024 · 1 revision

Get-SamplerCodeCoverageOutputFile

SYNOPSIS

Resolves the CodeCoverage output file path from the project's BuildInfo.

SYNTAX

Get-SamplerCodeCoverageOutputFile [-BuildInfo] <PSObject> [-PesterOutputFolder] <String>
 [<CommonParameters>]

DESCRIPTION

When the Pester CodeCoverageOutputFile is configured in the buildinfo (aka Build.yml), this function will expand the path (if it contains variables), and resolve to it's absolute path if needed.

EXAMPLES

EXAMPLE 1

Get-SamplerCodeCoverageOutputFile -BuildInfo $buildInfo -PesterOuputFolder 'C:\src\MyModule\Output\testResults

PARAMETERS

-BuildInfo

The BuildInfo object represented in the Build.yml.

Type: PSObject
Parameter Sets: (All)
Aliases:

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

-PesterOutputFolder

The Pester output folder (that can be overridden at runtime).

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
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

NOTES

RELATED LINKS

Clone this wiki locally