| external help file | PSPublishModule-help.xml |
|---|---|
| Module Name | PSPublishModule |
| online version | https://github.com/EvotecIT/PSPublishModule |
| schema | 2.0.0 |
Configures running Pester tests as part of the build.
New-ConfigurationTest -TestsPath <string> [-Enable] [-Force] [<CommonParameters>]Emits a test configuration segment that instructs the pipeline to run Pester tests after the module is merged/built. Use this when you want builds to fail fast on test failures.
PS> New-ConfigurationTest -Enable -TestsPath 'Tests'Runs tests from the Tests folder after the build/merge step.
PS> New-ConfigurationTest -Enable -TestsPath 'Tests' -ForceUseful in CI when you always want a fresh test run.
Enable test execution in the build.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueForce running tests even if caching would skip them.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TruePath to the folder containing Pester tests.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
None
System.Object
- None