Skip to main content
Version: 2.1.1-preview

Install-M365AdvisorTests

SYNOPSIS​

Installs the latest ready-made M365Advisor tests built by the M365Advisor team and the required Pester module.

SYNTAX​

Install-M365AdvisorTests [[-Path] <String>] [-SkipPesterCheck] [-Force] [-ProgressAction <ActionPreference>]
[<CommonParameters>]

DESCRIPTION​

The M365Advisor team maintains a repository of ready made tests that can be used to verify the configuration of your Microsoft 365 tenant.

The tests can be viewed at https://github.com/m365advisor365/m365advisor/tree/main/tests

EXAMPLES​

EXAMPLE 1​

Install-M365AdvisorTests

Install the latest set of M365Advisor tests in the current directory and installs the Pester module if needed.

EXAMPLE 2​

Install-M365AdvisorTests -Path .\m365advisor-tests

Installs the latest M365Advisor tests in the specified directory and installs the Pester module if needed.

EXAMPLE 3​

Install-M365AdvisorTests -SkipPesterCheck

Installs the latest M365Advisor tests in the current directory. Skips the check for the required version of Pester.

PARAMETERS​

-Path​

The path to install the M365Advisor tests in. Defaults to the current directory.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: .\
Accept pipeline input: False
Accept wildcard characters: False

-SkipPesterCheck​

Skips the automatic installation check for Pester.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Force​

Forces the installation and overwrites existing test files without prompting.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-ProgressAction​

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

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​

OUTPUTS​

NOTES​

https://m365advisor.dev/docs/commands/Install-M365AdvisorTests