This generic pester repository is intended for use as a git submodule, subtree, or similar, across multiple PowerShell projects
All of my projects at work use a variant of the ModuleValidation.Tests.ps1 file, which over time has had incremental changes which often get missed out of older projects, not to mention some hardcoded values that could be replaced with a dynamic lookup / some generic values
Seeing how many places I've been using this, I felt it was time to create a dedicated git repository that I can reference across all my work to cover the basic tests needed to ensure no obvious errors are committed in a consistent manner
Inspiration for this project came from Vexx32's own ModuleValidation.Tests.ps1
-
Add example of how to include as a submodule, subtree, and any other useful example
cd .\tests\ git submodule add git@github.com:Taoquitok/PowerShell-GenericPester.git generic cd ..\ invoke-pester .\tests\generic\ModuleValidation.Tests.ps1