Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 932 Bytes

testing.adoc

File metadata and controls

27 lines (19 loc) · 932 Bytes

Testing

Prerequisites

Pester 5.6 is used for unit tests in this project. Please note that Windows is shipped with much older version of Pester. For installation instructions follow the official guide.

Running tests

To run the whole test suite (all available tests) with code coverage, use the pester.ps1 script:

pwsh .\pester.ps1

Otherwise, you can run individual tests in terminal by following the instructions in Pester quick start guide.

Testing conventions

  • All tests are located in the tests directory or its subdirectories.

  • All test files are following the naming convention *.Tests.ps1.

  • Coverage report is available at ./coverage/coverage.xml (when you run the full test suite, of course);