-
Notifications
You must be signed in to change notification settings - Fork 67
Testing
We've created a testing workflow via GitHub Actions to verify and test the installation of packages. After successful testing and approval, new packages get automatically added to the custom FLARE VM package feed. This means they're immediately available to be installed in everyone's VM.
The default tests use the available GitHub Actions Runner Images for Windows. For details, see the *-Readme.md
files in Windows Runner Images.
To ensure new scripts and packages meet our code and structure requirements we run two linters:
- Lint PowerShell code:
PS scripts\test\lint.ps1
(requires PSScriptAnalyzer, see lint.ps1 on how to install it usingchoco
) - Lint all packages
$ python scripts\test\lint.py packages\
Use the provided script to ensure packages build and install correctly. This requires choco
to be installed either via FLARE VM or one of the standard installation methods.
-
PS scripts/test/test_install.ps1 "common.vm <package.vm>"
- run as Administrator to ensure all functions can run
- the script expects to find the package directory relative to the current path, i.e.
.\packages\
must exist
While uninstalling packages is best-effort please test it using the provided script:
PS scripts/test/test_uninstall.ps1 <package.vm>