This function generates two scripts, one that defines a function and another one that contains its tests.
This function generates two scripts, one that defines a function and another one that contains its tests. The files are by default placed in the current directory and are called and populated as such:
The script defining the function: .\Clean.ps1:
The script containing the example test .\Clean.Tests.ps1:
Creates the scripts in the current directory.
Creates the scripts in the C:\Projects\Cleaner directory.
Creates a new folder named Cleaner in the current directory and creates the scripts in it.
Defines the name of the function and the name of the test to be created.
Defines path where the test and the function should be created, you can use full or relative path. If the parameter is not specified the scripts are created in the current directory.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
This page was auto-generated using the comment based help in Pester 5.1.1. To edit the content of this page, change the corresponding help in the pester/Pester repository. See our contribution guide for more information.