Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 1.59 KB

tests.md

File metadata and controls

39 lines (22 loc) · 1.59 KB
description
PowerShell Universal automated test support.

Tests

{% hint style="info" %} This feature requires a license. {% endhint %}

PowerShell Universal integrates with the Pester test framework to allow you to execute test suites and view results. Results are stored in the PowerShell Universal database so you can view historical results.

You can work with tests by visiting Automation \ Tests.

Test Discovery

Tests files are located based on file name. Any files found in the respository that end in .Tests.ps1 will be listed in the Test Files tab. You can create new test files on the Automation \ Scripts page.

Test Files

Test Execution

{% hint style="info" %} Pester v5 or later needs to be installed to run tests. {% endhint %}

Tests can be run by clicking the Run Test or Run All Tests buttons. Run Test will run the individual Test Files and Run All Tests will run all the Test Files.

You will have the option to select the environment, credential and computer to run the tests.

Run Tests

Test Results

Test Results are produced after the test run finishes. You will be able to see the overal status of the test run and the result of individual test suites and cases.

Test Results