Creates a new Pester testing script from a script’s examples and parameter sets.
New-PesterTests.ps1 [-Script] <String> [-Directory <String>] [-Force] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
New-PesterTests.ps1 [-Directory <String>] [-Next] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-PesterTests.ps1 New-PesterTests.ps1
Creates .\test\New-PesterTests.Tests.ps1 with some boilerplate Pester code.
The script to generate tests for.
Type: String
Parameter Sets: Script
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The directory to generate tests in.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Test
Accept pipeline input: False
Accept wildcard characters: False
Overwrite an existing tests file.
Type: SwitchParameter
Parameter Sets: Script
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the next script that’s missing a test script file should have one created.
Type: SwitchParameter
Parameter Sets: Next
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.