Install-MaesterTests
Synopsis
Section titled “Synopsis”Not needed from Maester 3.0. Prepares a folder for your own Maester tests and configuration.
Syntax
Section titled “Syntax”Install-MaesterTests [[-Path] <String>] [-SkipPesterCheck] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”From Maester 3.0 the tests that ship with Maester run from the module itself, so updating the module updates them, and Maester needs no tests folder or repository: Invoke-Maester runs the built-in tests from any folder. You can remove Install-MaesterTests from your scripts and pipelines.
It is kept so that existing scripts keep working. It writes custom/README.md and a starter maester-config.json when they are missing. It never writes a test file and never overwrites an existing file, so it is safe to call on every pipeline run.
To add your own tests, run New-MtTest, which creates the custom folder. To change settings, create a maester-config.json with only the settings you change. Run Invoke-Maester -Path <folder> to run the built-in tests together with the custom tests and config in that folder.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Install-MaesterTests -Path ./maesterCreates ./maester with custom/README.md and maester-config.json.
Parameters
Section titled “Parameters”The folder to prepare. Defaults to the current directory.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 1Default value: .Accept pipeline input: FalseAccept wildcard characters: False-SkipPesterCheck
Section titled “-SkipPesterCheck”No longer has any effect. Maester 3.0 does not install Pester; install it yourself only if you run Pester-format custom tests.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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.