Skip to content

Commit 269cae4

Browse files
authored
Adding doc instructions for authoring tests (#112)
1 parent a66f3ea commit 269cae4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/getting-started.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,7 @@ A simple example is to change the param type from String to SecureString, to ach
7979
3. Edit the copied .ps1 file to do the customization. Change the param type to SecureString, and convert to plaintext inside cmdlet, replace the PSBoundParameters with the converted value;
8080
4. Call the internal cmdlet with the updated PSBoundParameters https://github.com/azure/azurestack-powershell/blob/master/src/Azs.Backup.Admin/custom/Set-AzsBackupConfiguration.ps1
8181
82-
82+
### Tests
83+
Pester tests are required to make sure that cmdlets are validated against a live azurestack environment. Also to make sure that the future changes are not breaking the cmdlets. We follow the record and playback framework used by the azure powershell team.
84+
The docs for authoring the tests can be found at the following wiki
85+
https://github.com/Azure/azure-powershell/wiki/How-to-On-Board-New-RP-with-Azure-PowerShell-Generator#test

0 commit comments

Comments
 (0)