Tests
PowerShell Universal automated test support.
Last updated
Was this helpful?
PowerShell Universal automated test support.
Last updated
Was this helpful?
This feature requires a license.
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.
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.
Pester v5 or later needs to be installed to run tests.
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.
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.