| document type | cmdlet |
|---|---|
| external help file | ModuleTools-Help.xml |
| HelpUri | |
| Locale | en-US |
| Module Name | ModuleTools |
| ms.date | 03/19/2026 |
| PlatyPS schema version | 2024-05-01 |
| title | Invoke-MTTest |
Runs Pester tests using settings from project.json
Invoke-MTTest [[-TagFilter] <string[]>] [[-ExcludeTagFilter] <string[]>] [<CommonParameters>]
This cmdlet has the following aliases, {{Insert list of aliases}}
Run Pester tests using the specified configuration and settings as defined in project.json. Place all your tests in "tests" folder
Invoke-MTTest Runs the Pester tests for the project.
Invoke-MTTest -TagFilter "unit","integrate" Runs the Pester tests for the project, that has tag unit or integrate
Invoke-MTTest -ExcludeTagFilter "unit" Runs the Pester tests for the project, excludes any test with tag unit
Array of tags to exclude, Provide the tag Pester should exclude
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Array of tags to run, Provide the tag Pester should run
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
{{ Fill in the related links here }}