Skip to content

Latest commit

 

History

History
98 lines (69 loc) · 1.94 KB

Invoke-PesterTest.md

File metadata and controls

98 lines (69 loc) · 1.94 KB
external help file Module Name online version schema
PSAutoLab-help.xml
PSAutoLab
2.0.0

Invoke-PesterTest

SYNOPSIS

Manually runs the Pester tests for a lab configuration.

SYNTAX

Invoke-PesterTest [[-Path] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Use this command to manually run the Pester tests for a lab configuration. Normally, the tests are run automatically when you create a lab. But you can use this command to run the tests at any time. The command is the equivalent of running:

Invoke-Pester .\vmValidate.test.ps1 -Show All -WarningAction SilentlyContinue

EXAMPLES

Example 1

PS C:\> Run-Pester

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-Path

The path to the configuration folder. Normally, you should run all commands from within the configuration folder.

Type: String
Parameter Sets: (All)
Aliases:

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

OUTPUTS

System.Object

NOTES

RELATED LINKS

Invoke-ValidateLab