Skip to content

Testing

Robert Klohr edited this page Feb 12, 2021 · 1 revision

Pester Tests

Unit Tests

Modules

  • Each module will have a psm1 file
  • Each module will have a psd1 file

Functions

  • Each functions will be an advanced function
    • Each function will include a Param block
    • Each function, where applicable, will be pipeline enabled
  • Each function will include comment based help
    • The comment based help will include a SYNOPSIS
    • The comment based help will include a DESCRIPTION
    • The comment based help will include a PARAMETER for each parameter
    • The comment based help will include at least one EXAMPLE
    • The comment based help will include an OUTPUTS
    • The comment based help will include an NOTES
  • Each function will include at least one Write-Verbose to assist in following the module execution flow
  • Each function will be in a separate file
    • Each file will be named function-

Integration Tests

Acceptance Tests

Clone this wiki locally