|
| 1 | +--- |
| 2 | +document type: cmdlet |
| 3 | +external help file: ModuleTools-Help.xml |
| 4 | +HelpUri: '' |
| 5 | +Locale: en-US |
| 6 | +Module Name: ModuleTools |
| 7 | +ms.date: 03/19/2026 |
| 8 | +PlatyPS schema version: 2024-05-01 |
| 9 | +title: Invoke-MTTest |
| 10 | +--- |
| 11 | + |
| 12 | +# Invoke-MTTest |
| 13 | + |
| 14 | +## SYNOPSIS |
| 15 | + |
| 16 | +Runs Pester tests using settings from project.json |
| 17 | + |
| 18 | +## SYNTAX |
| 19 | + |
| 20 | +### __AllParameterSets |
| 21 | + |
| 22 | +``` |
| 23 | +Invoke-MTTest [[-TagFilter] <string[]>] [[-ExcludeTagFilter] <string[]>] [<CommonParameters>] |
| 24 | +``` |
| 25 | + |
| 26 | +## ALIASES |
| 27 | + |
| 28 | +This cmdlet has the following aliases, |
| 29 | + {{Insert list of aliases}} |
| 30 | + |
| 31 | +## DESCRIPTION |
| 32 | + |
| 33 | +Run Pester tests using the specified configuration and settings as defined in project.json. Place all your tests in "tests" folder |
| 34 | + |
| 35 | +## EXAMPLES |
| 36 | + |
| 37 | +### EXAMPLE 1 |
| 38 | + |
| 39 | +Invoke-MTTest |
| 40 | +Runs the Pester tests for the project. |
| 41 | + |
| 42 | +### EXAMPLE 2 |
| 43 | + |
| 44 | +Invoke-MTTest -TagFilter "unit","integrate" |
| 45 | +Runs the Pester tests for the project, that has tag unit or integrate |
| 46 | + |
| 47 | +### EXAMPLE 3 |
| 48 | + |
| 49 | +Invoke-MTTest -ExcludeTagFilter "unit" |
| 50 | +Runs the Pester tests for the project, excludes any test with tag unit |
| 51 | + |
| 52 | +## PARAMETERS |
| 53 | + |
| 54 | +### -ExcludeTagFilter |
| 55 | + |
| 56 | +Array of tags to exclude, Provide the tag Pester should exclude |
| 57 | + |
| 58 | +```yaml |
| 59 | +Type: System.String[] |
| 60 | +DefaultValue: '' |
| 61 | +SupportsWildcards: false |
| 62 | +Aliases: [] |
| 63 | +ParameterSets: |
| 64 | +- Name: (All) |
| 65 | + Position: 1 |
| 66 | + IsRequired: false |
| 67 | + ValueFromPipeline: false |
| 68 | + ValueFromPipelineByPropertyName: false |
| 69 | + ValueFromRemainingArguments: false |
| 70 | +DontShow: false |
| 71 | +AcceptedValues: [] |
| 72 | +HelpMessage: '' |
| 73 | +``` |
| 74 | +
|
| 75 | +### -TagFilter |
| 76 | +
|
| 77 | +Array of tags to run, Provide the tag Pester should run |
| 78 | +
|
| 79 | +```yaml |
| 80 | +Type: System.String[] |
| 81 | +DefaultValue: '' |
| 82 | +SupportsWildcards: false |
| 83 | +Aliases: [] |
| 84 | +ParameterSets: |
| 85 | +- Name: (All) |
| 86 | + Position: 0 |
| 87 | + IsRequired: false |
| 88 | + ValueFromPipeline: false |
| 89 | + ValueFromPipelineByPropertyName: false |
| 90 | + ValueFromRemainingArguments: false |
| 91 | +DontShow: false |
| 92 | +AcceptedValues: [] |
| 93 | +HelpMessage: '' |
| 94 | +``` |
| 95 | +
|
| 96 | +### CommonParameters |
| 97 | +
|
| 98 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, |
| 99 | +-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, |
| 100 | +-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see |
| 101 | +[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216). |
| 102 | +
|
| 103 | +## INPUTS |
| 104 | +
|
| 105 | +## OUTPUTS |
| 106 | +
|
| 107 | +## NOTES |
| 108 | +
|
| 109 | +## RELATED LINKS |
| 110 | +
|
| 111 | +{{ Fill in the related links here }} |
| 112 | +
|
0 commit comments