ConvertTo-Pester4Result
#
SYNOPSISConverts a Pester 5 result-object to an Pester 4-compatible object
#
SYNTAX#
DESCRIPTIONPester 5 uses a new format for it's result-object compared to previous versions of Pester. This function is provided as a way to convert the result-object into an object using the previous format. This can be useful as a temporary measure to easier migrate to Pester 5 without having to redesign compelx CI/CD-pipelines.
#
EXAMPLES#
EXAMPLE 1This example runs Pester using the Passthru option to retrieve a result-object in the Pester 5 format and converts it to a new Pester 4-compatible result-object.
#
PARAMETERS#
-PesterResultResult object from a Pester 5-run. This can be retrieved using Invoke-Pester -Passthru or by using the Run.PassThru configuration-option.
#
CommonParametersThis 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 LINKShttps://pester.dev/docs/commands/ConvertTo-Pester4Result
https://pester.dev/docs/commands/Invoke-Pester
#
EDIT THIS PAGEThis page was auto-generated using the comment based help in Pester 5.1.1. To edit the content of this page, change the corresponding help in the pester/Pester repository. See our contribution guide for more information.